bryner%brianryner.com
5b5cd321a4
Guarantee that the pres context's device context will be non-null by returning failure from Init() if it's null. Rename inline getter GetDeviceContext() to DeviceContext(), convert all callers to use the inline getter, and remove the virtual/refcounting getter. Bug 229371, r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@152182 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-02 22:17:21 +00:00
bryner%brianryner.com
018aeefc0d
More nsIPresContext deCOMtamination (bug 229371). Inline getters and setters for LinkHandler, VisibleArea, and Language; change some methods that don't return any useful data to |void|; make GetContainer return an already_AddRefed. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@152137 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-01 10:09:07 +00:00
bryner%brianryner.com
b4581d93cf
Continuing nsIPresContext deCOMtamination (bug 229371). Remove ReParentStyleContext - callers can call frame manager directly. Removed several unused setters. Inlined getters for default colors, font scaler, and focus ring width. Changed GetDefaultFont to return a const nsFont*. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@152127 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-31 22:41:40 +00:00
roc+%cs.cmu.edu
0456e20a91
Bug 109772. Some nsIView deCOMtamination. Fixed the API for GetNeearestWidget to be sensible. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@152067 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-30 03:20:41 +00:00
jst%mozilla.jstenback.com
6629ad58f7
Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
...
git-svn-id: svn://10.0.0.236/trunk@152045 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 22:04:45 +00:00
dbaron%dbaron.org
1425a74cba
Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r+sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@152003 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-29 01:45:34 +00:00
dbaron%dbaron.org
8eddaadb96
Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r=jst sr=peterv
...
git-svn-id: svn://10.0.0.236/trunk@151970 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 21:04:33 +00:00
bryner%brianryner.com
e46f7c8143
More nsIPresContext deCOMtamination (bug 229371). Removed GetBaseURL, rename GetMedium to Medium and inline it, remove virtual style resolution methods that forward to style set (callers will call style set methods directly). Removed PresContext parameter to StyleSet style resolution functions. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@151927 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
5d781dc551
Clean up ComputeShrinkwrapMargins. b=217369 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151897 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 06:46:33 +00:00
dbaron%dbaron.org
3057f6fb34
Fix a bunch of errors in incremental computation of maximum width and max-element-size that were causing incremental reflow bugs. b=39683, 217369 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@151892 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 05:47:55 +00:00
bzbarsky%mit.edu
6d00103488
Remove the broken nsAttributeContent and just use regular textnodes to
...
implement attr() content. Use mutation events to handle dynamic attr changes.
Bug 214013, r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@151885 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 04:22:58 +00:00
dbaron%dbaron.org
132de00da5
Change name of variable so this code makes sense.
...
git-svn-id: svn://10.0.0.236/trunk@151804 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 20:21:32 +00:00
jst%mozilla.jstenback.com
12ed685455
Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
...
git-svn-id: svn://10.0.0.236/trunk@151784 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-24 00:46:17 +00:00
cbiesinger%web.de
ccedbc4f4e
Bug 231372
...
GetCombinedArea could be faster/better
make it return an nsRect as return value instead of out parameter.
r=dbaron sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@151690 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-22 15:06:25 +00:00
dbaron%dbaron.org
2f4f03a4d2
Use |const|. DEBUG-only.
...
git-svn-id: svn://10.0.0.236/trunk@151663 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:08:51 +00:00
bryner%brianryner.com
2dce372072
DeCOMtaminate nsCSSFrameConstructor (bug 231157). This gets rid of the nsIStyleFrameConstruction and nsICSSFrameConstructor interfaces. The frame constructor now has the same lifetime as the pres shell. r+sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@151662 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 23:05:10 +00:00
bryner%brianryner.com
70bf134ff4
Continuing nsIPresContext deCOMtamination (bug 229371). Remove GetImageLoadFlags (unused). Make failure to fetch the LookAndFeel service cause Init() to fail, don't null check it after that, and inlined the getter. Move IOService caching to nsImageFrame, the only user of it. r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@151636 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 09:35:59 +00:00
dbaron%dbaron.org
9ccbe84b74
Process queued-up events after all types of reflow so we don't leak things referenced by the queues. b=231278 r=bzbarsky sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@151618 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 04:15:00 +00:00
roc+%cs.cmu.edu
66839d6abc
Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@151513 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 19:35:19 +00:00
bzbarsky%mit.edu
750308fe88
Back out accidentally committed code. Bug 230852, r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@151508 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 18:20:57 +00:00
cbiesinger%web.de
e0a847a2af
Bug 176637 Custom link colors not rendered correctly
...
patch by durbacher@gmx.de (Andreas Kunz) r=dbaron sr=bz
git-svn-id: svn://10.0.0.236/trunk@151499 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 14:44:43 +00:00
peterv%propagandism.org
94b69cb574
Miscellaneous cleanup. r/sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@151493 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:45:26 +00:00
peterv%propagandism.org
ec0b3d579c
Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup). r=caillon, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@151491 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 10:22:22 +00:00
dbaron%dbaron.org
cfbe9cf517
Remove unneeded casts and extra shadowing variable.
...
git-svn-id: svn://10.0.0.236/trunk@151486 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 07:13:40 +00:00
dbaron%dbaron.org
a06e2c19f8
Fix elements with max-width overlapping floats due to initial incorrect position by reflow state. b=52916 Patch by Chris Waterson. r=dbaron sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151483 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-18 06:06:13 +00:00
bzbarsky%mit.edu
186039170e
Make <noscript> inline when displayed. Bug 230616, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@151405 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-16 03:05:00 +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
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
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
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
dbaron%dbaron.org
3d49352c78
Treat relatively positioned elements at original position for flowing around floats. b=205087 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151166 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 04:29:09 +00:00
bryner%brianryner.com
8542d06d80
attempting to fix HP-UX/AIX/IRIX bustage (bug 228378)
...
git-svn-id: svn://10.0.0.236/trunk@151156 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-11 00:24:37 +00:00
dbaron%dbaron.org
e77344ace5
Ignore incremental reflows targeted inside a reflow root if the reflow root's parent has not yet been reflowed. (This could probably be made more general, but it's enough to fix the bug in question.) b=228156 r=roc sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@151145 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 19:12:23 +00:00
roc+%cs.cmu.edu
4bdc65b3e2
Bug 228378. Clean up nsRegion. patch by Dainis Jonitis. r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@151143 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 16:18:36 +00:00
roc+%cs.cmu.edu
986d8acdaa
Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@151139 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-10 05:36:32 +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
bryner%brianryner.com
be2188b6ed
fixing debug bustage
...
git-svn-id: svn://10.0.0.236/trunk@151044 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 21:10:33 +00:00
bryner%brianryner.com
9dfcd977cb
Additional cleanup related to bug 64116. r=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@151039 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 19:23:12 +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
79ebfa0850
Make sure to not compute negative widths for blocks. Bug 230249, r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@151012 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-08 03:38:25 +00:00
dbaron%dbaron.org
d7bf492488
Back out some incorrrect changes I just made. b=230270, 230339 r=bryner
...
git-svn-id: svn://10.0.0.236/trunk@151000 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:38:09 +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
dbaron%dbaron.org
72c2779269
Fix leaks of mCurrentEventContent. A few other little pieces of cleanup. b=230270 r+sr=bryner
...
git-svn-id: svn://10.0.0.236/trunk@150996 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 22:18:37 +00:00
alecf%flett.org
adc79659c3
fix for bug 209679 - remove reflow observer junk - r/sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@150986 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-07 17:47:25 +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
a73bc94901
Fix restoration of horizontal scroll state. Bug 226534, r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@150906 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:56:00 +00:00
bzbarsky%mit.edu
d07dc259d9
Calculate the relative offsets after we've done whatever corrections we need to
...
do to the CB height (eg in quirks mode). Bug 226954, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@150904 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-05 23:48:57 +00:00
bryner%brianryner.com
019725339d
Continuing nsIPresContext deCOMtamination. This patch changes Get/SetImageAnimationMode. Bug 229371, r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@150737 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-26 04:24:11 +00:00