bzbarsky%mit.edu
0b800bdc50
Don't trim whitespace off hidden input values. Bug 114997, patch by Steuard
...
Jensen <steuard+moz@slimy.com>, r=sicking, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@194535 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 21:28:47 +00:00
mrbkap%gmail.com
9f3c532118
Set mStackPos early to avoid bad re-entrancy problems when inserting the new content into its parent does something interesting. bug 332971, r=jst sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@193852 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-08 00:32:03 +00:00
dbaron%dbaron.org
9911a9b756
Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@193572 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-05 00:00:44 +00:00
bzbarsky%mit.edu
571229ef56
Fix notifications for framesets. Bug 315369, r+sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@193568 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-04 22:37:23 +00:00
darin%meer.net
70deb5f58d
fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 18:40:56 +00:00
bzbarsky%mit.edu
b9302cc9da
Trying to fix Tp regression. Bug 324828, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@189393 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-08 05:56:13 +00:00
cbiesinger%web.de
6322c04952
bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
...
r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@188844 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-03 14:18:39 +00:00
bzbarsky%mit.edu
1510aacc39
Push up GetPrincipal to nsINode (as GetNodePrincipal). This way all nsINodes
...
(content, documents, attr nodes) can return their principal as needed.
Eliminate lazy allocation of principals in nsDocument. Bug 324600, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@188770 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 20:02:34 +00:00
cvshook%sicking.cc
0eabcdd5c2
More bug 325404. Use the right charset when parsing baseuris, and fix copy-n-paste error. r/sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188716 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-02 00:17:15 +00:00
cvshook%sicking.cc
af34ea4a83
Bug 325404: Get rid of _base_href and _base_target attributes and use properties instead. r/sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188642 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-01 04:43:55 +00:00
mrbkap%gmail.com
61c90940c0
When we don't find a </script> tag, we should put the entire rest of the document into the script element, but not execute the script. This also makes serialization not serialize the end tags for scripts that don't have them (to preserve round tripping). bug 305873, r=sicking sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188619 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-31 22:19:46 +00:00
bzbarsky%mit.edu
83b451451a
Make sure first attr always wins, even for <html> and <head>. Bug 324378,
...
r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@188304 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 01:13:00 +00:00
bzbarsky%mit.edu
d6bd116657
Don't lose text in the head context. Bug 324476, r=mrbkap, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188301 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-27 01:05:54 +00:00
mrbkap%gmail.com
44fd52082e
bug 321781: document.close() causes weird things to happen when asynchronous things were document.written. r=sicking sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@188077 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-24 01:25:14 +00:00
bzbarsky%mit.edu
31719bf3ba
Implement an nsINode interface; move some common stuff from nsIContent and
...
nsIDocument to nsINode. Bug 323311, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@187813 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-19 03:34:18 +00:00
bzbarsky%mit.edu
42fc7c3c0c
Fix bug 297801 by making removal and reinsertion of the root element less
...
magical. r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@187490 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-12 17:11:57 +00:00
bzbarsky%mit.edu
cf434cba7f
Remove content ids. Bug 166637, r=sicking, sr=peterv
...
git-svn-id: svn://10.0.0.236/trunk@185376 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-29 16:47:18 +00:00
timeless%mozdev.org
f9bdb44b34
Bug 106386 Correct misspellings in source code
...
patch by unknown@simplemachines.org r=timeless rs=brendan
git-svn-id: svn://10.0.0.236/trunk@185269 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-25 08:16:51 +00:00
cvshook%sicking.cc
9fe570c5d5
Bug 312592: Reduce amount of duplicated code in html contentsink.
...
r=mrbkap sr=peterv
git-svn-id: svn://10.0.0.236/trunk@184399 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-10 15:51:10 +00:00
cvshook%sicking.cc
b26f9f52fb
Bug 311827: Make GetAttr return a bool rather then an nsresult.
...
r/sr=bz
git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
cvshook%sicking.cc
4c3b0d8f16
Fix buildbustage due to bad merge conflict. Hail to nsDerivedSafe!
...
git-svn-id: svn://10.0.0.236/trunk@182700 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 15:59:13 +00:00
cvshook%sicking.cc
f95c92ff95
Bug 311785: Simplify the nsIHTMLContentSink interface
...
r=mrbkap sr=peterv
git-svn-id: svn://10.0.0.236/trunk@182699 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 15:39:06 +00:00
bzbarsky%mit.edu
011ce4236b
Make sure to only treat the outermost frameset as body-like. Bug 312942, r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@182570 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-20 02:12:20 +00:00
bzbarsky%mit.edu
1c8be4844e
Make sure to notify for frameset like we do for body. Bug 312097, r=sicking, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@182272 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 21:48:33 +00:00
peterv%propagandism.org
8c33ea74e1
Fix for bug 308328 (crash in [@ nsDocument::GetPrincipal] when closing browser). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@182242 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-14 09:07:29 +00:00
bzbarsky%mit.edu
cbda596f93
Make sure to flush out the content model before processing restyles; otherwise
...
we can end up with odd content duplication. Bug 309986, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@180938 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-26 01:27:42 +00:00
peterv%propagandism.org
86ac4d2e8f
Fix for bug 27382 (ownerDocument of orphan text and attr nodes is null). Patch by sicking, updated by peterv, r=bz, sr=peterv.
...
git-svn-id: svn://10.0.0.236/trunk@180911 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-24 18:43:15 +00:00
bzbarsky%mit.edu
33eede8798
Pass a boolean indicating whether we've sent a ContentInserted or
...
ContentAppended notification to DoneAddingChildren. Bug 309534, r=mrbkap,
sr=jst
git-svn-id: svn://10.0.0.236/trunk@180787 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 02:33:36 +00:00
timeless%mozdev.org
cb6d168fcc
Bug 308573 use if (NS_FAILED(...)) instead of if NS_FAILED(...)
...
patch by b.jacques@planet.nl r=darin sr=darin
git-svn-id: svn://10.0.0.236/trunk@180324 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-15 23:17:17 +00:00
peterv%propagandism.org
b64b04886f
Fix for bug 306363 (Clean up nsContentUtils service getters). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@179982 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-11 10:08:43 +00:00
mrbkap%gmail.com
4045b60295
bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@179916 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-09 18:03:47 +00:00
bzbarsky%mit.edu
a8c7d445d5
Make sure that a reflow flush on the document makes the sink start layout if
...
needed. Bug 253951, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@178851 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 20:56:58 +00:00
bzbarsky%mit.edu
ed6b561eb2
Make sure to set base tag info on the leaf forms we create when HTML is
...
misnested. Bug 73818, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@177916 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 22:57:11 +00:00
peterv%propagandism.org
aac2b47f2a
Fix for bug 286300 (Clean up HTML tags enum and related code). r=mrbkap, sr=bz, a=asa.
...
git-svn-id: svn://10.0.0.236/trunk@174703 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 13:10:58 +00:00
bzbarsky%mit.edu
578132afda
Fix leak on setting innerHTML in XML, as well as leaks when the parent of a
...
not-yet-parsed script is removed from the document. Bug 294274, r+sr=peterv,
a=chofmann
git-svn-id: svn://10.0.0.236/trunk@174028 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-02 02:38:20 +00:00
mrbkap%gmail.com
1d5ac8765e
bug 208869: Setting innerHTML with textarea can isnert an extra newline. This patch makes textarea be treated as a normal container outside CNavDTD (which takes over its first-newline removal duties). r=sicking sr=bzbarksy a=shaver
...
git-svn-id: svn://10.0.0.236/trunk@173988 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 21:23:23 +00:00
bzbarsky%mit.edu
79f2b8e2c7
Fix crash if the DOM gets rearranged while we're parsing. Bug 294235,
...
r+sr=peterv, a=asa
git-svn-id: svn://10.0.0.236/trunk@173594 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-19 19:56:13 +00:00
bzbarsky%mit.edu
e2e0f7bfab
Remove unused aDeep args from AppendChildTo and InsertChildAt. Bug 289316,
...
r=sicking, sr=peterv, a=brendan
git-svn-id: svn://10.0.0.236/trunk@172410 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-18 22:58:35 +00:00
vladimir%pobox.com
dcf80e9788
b=288714, html canvas implementation, r=various,a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@172389 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-18 06:33:23 +00:00
bzbarsky%mit.edu
577af8f892
Move the BindToTree call for the document element into SetRootContent. Bug
...
289209, r=sicking, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@172254 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-15 01:30:14 +00:00
bzbarsky%mit.edu
6c4f2a810d
Append HTML nodes to the DOM on node creation, not when we hit the close tag.
...
Should help with the Tp regression. Bug 289311, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@171842 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 03:30:50 +00:00
bzbarsky%mit.edu
d600031fa4
Back out the preappend change now that the image changes are in to see what Tp does...
...
git-svn-id: svn://10.0.0.236/trunk@171776 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 03:40:51 +00:00
bzbarsky%mit.edu
3a25bfa362
Attempting to fix Tp regression
...
git-svn-id: svn://10.0.0.236/trunk@171759 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-06 01:23:07 +00:00
bzbarsky%mit.edu
2ed6c9fac8
Eliminate nsIContent::SetDocument/SetParent/SetBindingParent in favor of
...
BindToTree and UnbindFromTree methods. Bug 286000, r=sicking, sr=jst
git-svn-id: svn://10.0.0.236/trunk@171749 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-05 23:54:35 +00:00
mrbkap%gmail.com
ce19ca701d
bug 286733: Crash when attempting to handle misplaced content inside misplaced content because mContextTopIndex pointed to a closed index already. r=jst sr=rbs
...
git-svn-id: svn://10.0.0.236/trunk@171601 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-04 21:20:00 +00:00
mrbkap%gmail.com
2e94664017
bug 280044: Pass a title node to the content sinks so that attributes on title don't get lost. r=sicking sr=peterv
...
git-svn-id: svn://10.0.0.236/trunk@171044 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 07:09:24 +00:00
peterv%propagandism.org
d06ab89f85
Fix for bug 285166: createElement crashes [@ NS_NewHTMLElement] [@
...
git-svn-id: svn://10.0.0.236/trunk@170850 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-17 20:41:27 +00:00
mrbkap%gmail.com
f55eac441c
Back out the wallpaper from bug 197015 since a better one has been checked in for bug 220542 (bug 197015, r=jst, sr=bzbarsky)
...
git-svn-id: svn://10.0.0.236/trunk@168689 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 02:24:43 +00:00
neil%parkwaycc.co.uk
8c685211d0
Bustage fix - I missed an NS_ADDREF but peterv spotted my error
...
git-svn-id: svn://10.0.0.236/trunk@167733 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-14 16:19:17 +00:00
neil%parkwaycc.co.uk
d9bb75d413
Fixing startup test bustage - I'd only landed the infrastructure and forgotton to fix the actual bogus QI calls. Oh, and the bug number is 276959 not 286959.
...
git-svn-id: svn://10.0.0.236/trunk@167732 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-14 15:32:58 +00:00