3691 Commits

Author SHA1 Message Date
caillon%returnzero.com
a6b89b89f0 Bug 230976.
Use atoms for common default values in nsComputedDOMStyle to avoid string duplication.
r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@151476 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 02:42:27 +00:00
dbaron%dbaron.org
87f96cc17d Fix parsing of 'cursor' property and ignoring of uri() values, which we don't support. b=77974 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151470 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 01:12:58 +00:00
bzbarsky%mit.edu
4554c2ece4 Handle two-':' forms of pseudo-elts. Bug 128482, r=caillon, sr=jst
git-svn-id: svn://10.0.0.236/trunk@151459 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-17 20:04:26 +00:00
sicking%bigfoot.com
4cf4f38304 Bug 195350: Fix regression from earlier patch in same bug: make html-attributes be case-insensitive again.
r=caillon sr=peterv


git-svn-id: svn://10.0.0.236/trunk@151437 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-16 22:44:33 +00:00
caillon%returnzero.com
9597ef526a Bug 230973 - NS_STYLE_LIST_STYLE_BASIC is spurious. Remove its usage in favor of the correct default of disc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@151390 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 22:06:39 +00:00
dbaron%dbaron.org
078355ac88 Remove bogus assertion (decl should be null for elt.style, if there's no style attribute). r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151383 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 21:00:35 +00:00
sicking%bigfoot.com
737987f531 Bug 195350: First stage of attributes overhaul. New class for storing attributes and children for an element. Use this class for xml elements. Also remove a couple of unneccesary functions from nsIContent.
r=caillon sr=jst


git-svn-id: svn://10.0.0.236/trunk@151370 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 17:07:27 +00:00
dbaron%dbaron.org
36435245d2 Remove nsChangeHint_ReconstructDoc. b=230945 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151356 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 03:32:06 +00:00
bryner%brianryner.com
f1d1cb19d8 Consolidate SetEnabled and SetDisabled; make sure both of them clear the rule cascade on the rule processors. Bug 230651, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151355 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 03:26:56 +00:00
dbaron%dbaron.org
edb9425c61 Add support for -moz-image-region to getComputedStyle. b=220717 r=bzbarsky sr=ben
git-svn-id: svn://10.0.0.236/trunk@151347 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-15 02:25:08 +00:00
dbaron%dbaron.org
7888f1af3e Implement CSS3 indirect adjacent sibling combinator (~). Roughly identical patches independently written by Daniel Glazman <daniel@glazman.org>, Bradley Baetz <bbaetz@acm.org>, and me. r+sr=dbaron b=135141
git-svn-id: svn://10.0.0.236/trunk@151321 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 20:12:03 +00:00
dbaron%dbaron.org
44cf91f9e8 Do style resolution of later siblings required by the CSS + combinator on event state and attribute changes by changing the result of Has(Attribute|State)DependentStyle into a bitfield and setting and handling the restyle-later-siblings bit appropriately. b=15608 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151284 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-14 01:36:35 +00:00
bzbarsky%mit.edu
86fee95b4d Remove nsIHTMLContentContainer, merge those three functions into nsIDocument,
and make XUL style attribute dynamic changes get a proper CSSLoader off the
document. Bug 211376, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@151268 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 23:14:49 +00:00
bzbarsky%mit.edu
59d6abe4a5 Make pretty-printing stylesheets force UTF-8 for themselves. Update charset
stuff in CSSLoader to look at the parent sheet charset and use NSPR logging.
Bug 230660, r=sicking, sr=peterv


git-svn-id: svn://10.0.0.236/trunk@151254 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 19:01:26 +00:00
bryner%brianryner.com
a607b89df2 Don't create new rule processors when a style sheet is enabled or disabled, just clear the rule cascade on the existing processors. Bug 230651, r=dbaron, sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@151243 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-13 02:19:28 +00:00
bzbarsky%mit.edu
9900c39f48 Don't allow pseudos that are supposed to be functions to pass through as ident
tokens.  Bug 230704, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@151230 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 23:56:18 +00:00
bryner%brianryner.com
3d8a7179f8 Improve the way in which nsEvent and its subclasses are initialized. Commonly-used members can now be initialized via an inline constructor, and all other members are initialized to zero. eventStructType is set automatically. This also fixes some cases where an eventStructType was doubling as a message -- NS_TEXT_EVENT is now only used as an eventStructType, with a message of NS_TEXT_TEXT. NS_COMPOSITION_* events get an eventStructType of NS_COMPOSITION_EVENT, and ditto for NS_RECONVERSION_*. NS_DRAGDROP_EVENT is no longer an eventStructType since it is not a unique type of struct. There is also some miscellaneous cleanup to nsDOMEvent. Bug 220228, r=jst, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@151191 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-12 08:25:18 +00:00
jst%mozilla.jstenback.com
dfa016c77a Followup for the fix for bug 226522. Undo the part of the change that incorrectly made a bunch of methods in nsGenericHTMLElement virtual. r+sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@151136 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 04:42:06 +00:00
bzbarsky%mit.edu
3e32bc588c Don't use HTML rules to parse (redundantly) media strings in CSS @import
rules.  Bug 153755, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@151128 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 02:27:41 +00:00
jst%mozilla.jstenback.com
dbf342ddc6 Eliminate unnecessary (and incorrectly declared) IsContentOfType() method from nsHTMLSharedLeafElement. r+sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@151125 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 01:48:32 +00:00
jst%mozilla.jstenback.com
b8b82b85a7 Undoing part of a change that was made by mistake in my last checkin (bug 226522), and eliminating the use of NS_METHOD on method declarations in nsGenericHTMLLeafElement and nsGenericHTMLContainerElement. r+sr=dbaron@dbaron.org.
git-svn-id: svn://10.0.0.236/trunk@151124 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 01:44:10 +00:00
dbaron%dbaron.org
2f496ec386 Fix UMR by filling in out parameter in IsEnabled. b=230536 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151120 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 00:19:59 +00:00
jst%mozilla.jstenback.com
803e4eb910 General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@151115 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 23:54:21 +00:00
roc+%cs.cmu.edu
2c7cf5d827 Bug 210269. Reduce use of SetAttr during reflow. Also, fix up the API that gets the scrollbar dimensions of a scrollframe to always work right for RTL. r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@151089 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 19:21:20 +00:00
roc+%cs.cmu.edu
35c266025d Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz
git-svn-id: svn://10.0.0.236/trunk@151077 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 14:20:53 +00:00
bzbarsky%mit.edu
d3e33b0653 Setting .src should reset image animations; don't animate images no one is
looking at.  Bug 210001, r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@151035 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 18:29:28 +00:00
bzbarsky%mit.edu
3b89ac8234 Add Content-Location header support. Bug 109553, r=jst, sr=darin
git-svn-id: svn://10.0.0.236/trunk@151014 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 04:04:16 +00:00
bryner%brianryner.com
468d3e2e8d Eliminate nsIStyleSet as an XPCOM interface, making the implementation internal to layout. Frame constructor ownership moves to the pres shell, and the style set methods that forward to the frame constructor are gone. Rewrote style set sheet add/remove to reduce code size. For more details, see bug 64116. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@150998 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:30:53 +00:00
bzbarsky%mit.edu
9563055967 Make HTMLButtonElement.type writable. Bug 228174, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@150927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 17:22:08 +00:00
bzbarsky%mit.edu
efce25943d Nodes with an id but not in a form should not be accessible via
document.forms["foo"].bar.  Bug 207481, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@150926 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 17:14:58 +00:00
caillon%returnzero.com
901c1795b6 Bug 226375
We were leaking nsIClassInfo objects because a DOM class info getter returned AddRef()ed raw pointers.  Most of our dom/ and content/ QueryInterface() implementations knew this and accounted for it, but not all. The leak fix is thus achieved by fixing the method to not call AddRef() on its return value, and fixing the appropriate QueryInterface() macros/implementations. As a bonus, this macro-izes many  QueryInterface() implementations in content/ which were fully written out.
r=peterv@propagandism.org
sr=alecf@flett.org
 CVS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@150910 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 00:36:01 +00:00
bzbarsky%mit.edu
36173b7f93 Make changes to "align" attribute of <legend> trigger reflow. Bug 109280, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150908 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-06 00:01:54 +00:00
bzbarsky%mit.edu
d513aa3f26 Make AdjustComputedWidth/Height take a boolean that tells it whether to account
for box-sizing; sometimes we don't want to.  Also fix parsing of
max-width/height and min-width/height to error on negative values (per spec).
Bug 227819, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@150907 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:59:25 +00:00
bzbarsky%mit.edu
3486ad4dfc Make generic DOM datanodes implement GetBindingParent in a semi-useful way so
that event retargeting works (bug 97634, bug 183878).  Also remove some code
that's no longer needed now that we have retargeting.  r=bryner, sr=jst


git-svn-id: svn://10.0.0.236/trunk@150905 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:52:57 +00:00
bzbarsky%mit.edu
4a7fde8018 Make checkbox and radio also submit by clicking the submit button, like text
inputs do.  Bug 190559, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@150901 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:39:50 +00:00
dbaron%dbaron.org
d0f32a43bc Fix two case-sensitivity issues with attribute selectors. b=229172 Patch from Gilles Durys <mozbug@durys.net>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150779 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-30 17:58:17 +00:00
dbaron%dbaron.org
76562c28eb Remove no-longer-needed hook for inspector. b=224164
git-svn-id: svn://10.0.0.236/trunk@150771 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-29 19:17:22 +00:00
dbaron%dbaron.org
e7a4bc980c Fix overuse of inlining in nsCSSValue. r=bryner b=224165
git-svn-id: svn://10.0.0.236/trunk@150770 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-29 19:07:53 +00:00
dbaron%dbaron.org
ff3fecd26f Add a correct comment.
git-svn-id: svn://10.0.0.236/trunk@150767 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-29 16:39:50 +00:00
hpradhan%hotpop.com
fb9f42cbfb bug 229183 : Eliminate an unnecessary QI r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@150730 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-25 10:30:48 +00:00
bryner%brianryner.com
4cca78120d deCOMtaminate nsIPresContext::GetCompatibilityMode / SetCompatibilityMode (bug 229081). r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150720 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 21:51:50 +00:00
hpradhan%hotpop.com
b1f5788e3e backing out last two checkins since they had no effect on Tp
git-svn-id: svn://10.0.0.236/trunk@150709 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 13:43:25 +00:00
hpradhan%hotpop.com
ec6e4a4dc7 bug 229163 : One more attempt to try and fix perf regression r=sicking sr=jst
git-svn-id: svn://10.0.0.236/trunk@150706 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 11:03:19 +00:00
hpradhan%hotpop.com
5139c3655c bug 229163 : Going back to using an nsISupportsArray
to try and fix perf regression r=sicking sr=jst


git-svn-id: svn://10.0.0.236/trunk@150705 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-24 07:45:06 +00:00
peter%propagandism.org
06c4658970 Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@150685 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 15:48:14 +00:00
peter%propagandism.org
cf13bd6210 Patch for bug 209699 (convert some consumers over to CopyUTF8toUTF16 / CopyUTF16toUTF8). r=jshin, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@150684 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-23 15:41:10 +00:00
cbiesinger%web.de
7c75c644a8 Bug 227567. make clientHeight work more like msie
patch by mats.palmgren@bredband.net r=bzbarsky sr=jst


git-svn-id: svn://10.0.0.236/trunk@150627 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-22 13:35:39 +00:00
jst%mozilla.jstenback.com
7442fffb44 Fixing bug 226462. Eliminating the aReverseReturnResult argument from nsIScriptContext::CallEventHandler(). r=caillon@aillon.org, sr=brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@150607 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 18:01:19 +00:00
bryner%brianryner.com
b5347dd60c Change all callers of nsIPresContext::GetShell() to use the non-refcounting versions. Most callers now use PresShell(), a few that were checking for null conditions are using GetPresShell() -- this will be remedied once we can ensure that a prescontext never has a null pres shell. Bug 227690, r+sr=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@150598 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-21 05:36:36 +00:00
bmlk%gmx.de
90820b7903 oops, the last patch was done by Boris Zbarsky and it was for bug 155957
git-svn-id: svn://10.0.0.236/trunk@150563 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-20 12:19:41 +00:00