dbaron%dbaron.org
cf234f479e
Don't handle auto margins when the container has an unconstrained width. (This still doesn't handle max-width computation with a constrained reflow.) b=229654 r+sr=bzbarsky
2004-02-09 05:22:23 +00:00
bzbarsky%mit.edu
9d18d90270
Collapse trailing whitespace even if there is a placeholder after it. Bug
...
233451, r+sr=dbaron
2004-02-09 01:01:06 +00:00
dbaron%dbaron.org
9e5fb4244d
Get rid of empty damage rect warning; better to check at callee than caller. Add const to fix DEBUG-only warnings about string constants being used as non-const. b=233292 r+sr=roc
2004-02-06 23:11:46 +00:00
dbaron%dbaron.org
410855b9a6
Change the way we handle auto margins on blocks with outer width (excluding auto margins) wider than their containing block. Use rules equivalent to overconstraint handling (margins non-auto) so that we depend on 'direction' rather than on which margins are 'auto'. b=185411 r=roc sr=bzbarsky
2004-02-04 05:18:37 +00:00
dbaron%dbaron.org
e04ab52cda
Clean up code related to broken / loading image icons and make it observe pref changes. b=180620 r+sr=bzbarsky
2004-02-03 20:30:02 +00:00
dbaron%dbaron.org
b4a8733213
Uncomment a call to SetColor that is needed. b=181336 r+sr=bzbarsky
2004-02-03 18:27:11 +00:00
dbaron%dbaron.org
72ef0c2cb4
Allow PushLines to push the first line. b=185357 r+sr=roc
2004-02-03 18:19:42 +00:00
bzbarsky%mit.edu
e792da8eeb
Remove code that munges block widths inside table cells. Bug 232754,
...
r+sr=dbaron
2004-02-03 16:49:38 +00:00
bryner%brianryner.com
4f69ec2c2e
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.
2004-02-02 22:17:21 +00:00
bryner%brianryner.com
42adb9f1be
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
2004-02-01 10:09:07 +00:00
bryner%brianryner.com
08f53379c4
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.
2004-01-31 22:41:40 +00:00
roc+%cs.cmu.edu
ee86ab45fb
Bug 109772. Some nsIView deCOMtamination. Fixed the API for GetNeearestWidget to be sensible. r+sr=dbaron
2004-01-30 03:20:41 +00:00
jst%mozilla.jstenback.com
90431d8022
Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org
2004-01-29 22:04:45 +00:00
bsmedberg%covad.net
7d79d7ba8b
Bug 232201 part 2 - update consumers to use inherited nsIPrefBranchInternal interface. This should be happy for codesize. r=alecf sr=darin
2004-01-28 23:45:17 +00:00
dbaron%dbaron.org
96079e83a3
Use a stub implementation of nsIDocumentObserver for implementors of nsIDocumentObserver in the layout library. b=232351 r=jst sr=peterv
2004-01-28 21:04:33 +00:00
bryner%brianryner.com
bc74f0b352
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.
2004-01-28 00:18:22 +00:00
dbaron%dbaron.org
b94360f0f4
Clean up ComputeShrinkwrapMargins. b=217369 r+sr=bzbarsky
2004-01-27 06:46:33 +00:00
dbaron%dbaron.org
139e92501a
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
2004-01-27 05:47:55 +00:00
dbaron%dbaron.org
f785bbdd29
Change name of variable so this code makes sense.
2004-01-24 20:21:32 +00:00
jst%mozilla.jstenback.com
ce1edc1dc9
Fixing bug 230840. DeCOMtaminating nsIDocumentObserver, nsIAttribute, nsIContentList, and nsIContentIterator, and doing some other cleanup. r=jonas@sicking.cc, sr=bryner@brianryner.com
2004-01-24 00:46:17 +00:00
cbiesinger%web.de
3eef6608c2
Bug 231372
...
GetCombinedArea could be faster/better
make it return an nsRect as return value instead of out parameter.
r=dbaron sr=bzbarsky
2004-01-22 15:06:25 +00:00
dbaron%dbaron.org
cd5b87a264
Use |const|. DEBUG-only.
2004-01-21 23:08:51 +00:00
bryner%brianryner.com
23ecb8ff4e
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.
2004-01-21 23:05:10 +00:00
bryner%brianryner.com
ef5c330583
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.
2004-01-21 09:35:59 +00:00
roc+%cs.cmu.edu
0113914771
Bug 229052. Treat pre-formatted newlines like BRs, preserving the break type in nsBlockFrame::ReflowInlineFrame. r+sr=dbaron
2004-01-18 19:35:19 +00:00
bzbarsky%mit.edu
787faefa9e
Back out accidentally committed code. Bug 230852, r+sr=roc
2004-01-18 18:20:57 +00:00
peterv%propagandism.org
a75063695e
Doh. Fixing bustage.
2004-01-18 15:20:00 +00:00
peterv%propagandism.org
8f4e566b42
Miscellaneous cleanup. r/sr=jst.
2004-01-18 14:53:32 +00:00
peterv%propagandism.org
379d6c8a41
Miscellaneous cleanup. r/sr=jst.
2004-01-18 10:45:26 +00:00
peterv%propagandism.org
629972988f
Fix for bug 230439 (Remove anonymous nodeinfomanager and other cleanup). r=caillon, sr=jst.
2004-01-18 10:22:22 +00:00
dbaron%dbaron.org
249be1bc15
Remove unneeded casts and extra shadowing variable.
2004-01-18 07:13:40 +00:00
dbaron%dbaron.org
c5034ca1d8
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
2004-01-18 06:06:13 +00:00
caillon%returnzero.com
3b526b4352
Bug 230973 - NS_STYLE_LIST_STYLE_BASIC is spurious. Remove its usage in favor of the correct default of disc. r+sr=dbaron
2004-01-15 22:06:39 +00:00
dbaron%dbaron.org
9c4c615847
Remove NS_FRAME_HAS_LOADED_IMAGES state bit. b=201076 r+sr=bzbarsky
2004-01-13 01:18:51 +00:00
bryner%brianryner.com
2bddef83ba
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.
2004-01-12 08:25:18 +00:00
dbaron%dbaron.org
99665b6c2c
Treat relatively positioned elements at original position for flowing around floats. b=205087 r+sr=bzbarsky
2004-01-11 04:29:09 +00:00
bryner%brianryner.com
cd870d2172
attempting to fix HP-UX/AIX/IRIX bustage (bug 228378)
2004-01-11 00:24:37 +00:00
roc+%cs.cmu.edu
e1d625af68
Bug 228378. Clean up nsRegion. patch by Dainis Jonitis. r+sr=roc
2004-01-10 16:18:36 +00:00
roc+%cs.cmu.edu
9348803726
Bug 225820. Fold nsFrameInnerFrame into nsFrameOuterFrame, rename to nsSubDocumentFrame, and generally clean up this mess. r+sr=dbaron
2004-01-10 05:36:32 +00:00
jst%mozilla.jstenback.com
c000ae86e8
General deCOMtamination of nsIDocument, nsIContent, and nsIFormSubmission. Eliminating nsIAttributeContent, and doing some URL->URI changes. r+sr=peterv@propagandism.org
2004-01-09 23:54:21 +00:00
roc+%cs.cmu.edu
3bfe589ac4
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
2004-01-09 19:21:20 +00:00
roc+%cs.cmu.edu
e7f165c614
Bug 190735. deCOMtaminate nsIFrame::FirstChild and nsIFrame::GetAdditionalChildListName. r+sr=bz
2004-01-09 14:20:53 +00:00
bzbarsky%mit.edu
c9dd4109c2
Setting .src should reset image animations; don't animate images no one is
...
looking at. Bug 210001, r=pavlov, sr=jst
2004-01-08 18:29:28 +00:00
bzbarsky%mit.edu
bde7ac0a33
Make sure to not compute negative widths for blocks. Bug 230249, r+sr=dbaron
2004-01-08 03:38:25 +00:00
bryner%brianryner.com
e65d2d2fe5
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.
2004-01-07 22:30:53 +00:00
caillon%returnzero.com
319d92fa7d
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: ----------------------------------------------------------------------
2004-01-06 00:36:01 +00:00
bzbarsky%mit.edu
bba32c2126
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
2004-01-05 23:59:25 +00:00
bzbarsky%mit.edu
a5fa5ddc71
Fix restoration of horizontal scroll state. Bug 226534, r+sr=roc
2004-01-05 23:56:00 +00:00
bzbarsky%mit.edu
bd6e613fb1
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
2004-01-05 23:48:57 +00:00
bryner%brianryner.com
080ad777b6
Continuing nsIPresContext deCOMtamination. This patch changes Get/SetImageAnimationMode. Bug 229371, r+sr=bzbarsky.
2003-12-26 04:24:11 +00:00