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
neil%parkwaycc.co.uk
5b654e42cb
Bug 90906 Remove unused variables p=gautheri@noos.fr r/sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@150570 18797224-902f-48f8-a5cc-f745e15eee43
2003-12-20 18:09:21 +00:00
dbaron%dbaron.org
0abe2cee23
Fix incremental reflow bugs by being consistent about max-element-width for percentage widths whether or not the reflow is an unconstrained width (as initial always is when we care about max-element-width) or constrained width (as some incremental reflows are). b=215857 r=bernd sr=bzbarsky a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@149688 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:48:25 +00:00
dbaron%dbaron.org
a8191642ef
Do inheritance without layout-dependent computations, per CSS2.1. Remove eStyleUnit_Inherit and nsStyleCoord::SetInheritValue. b=205790 r+sr=bzbarsky a=asa
...
git-svn-id: svn://10.0.0.236/trunk@149687 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-24 19:46:25 +00:00
dbaron%dbaron.org
af2bdc9aec
Add comments connecting two quirks.
...
git-svn-id: svn://10.0.0.236/trunk@149403 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-16 18:49:00 +00:00
dbaron%dbaron.org
c484400136
Remove BRS_NOWRAP. b=191699 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@149157 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-11 19:24:01 +00:00
dbaron%dbaron.org
c53d72392a
Clean up nsIFrame::IsEmpty signature and move towards making 'white-space' work on inlines. b=191699 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@149126 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-10 23:36:06 +00:00
uid502
e56ed2443c
Bug 190735. DeCOMtaminate nsIFrame::GetFrameType. r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@148665 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-31 20:19:18 +00:00
dbaron%dbaron.org
33601224e0
Use the correct term "float" instead of "floater". b=218654 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@147924 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-13 21:51:02 +00:00
bzbarsky%mit.edu
90e284491b
Use UnionRect instead of reimplementing it in the block code. Bug 220741,
...
r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@147822 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-10 01:12:55 +00:00
bmlk%gmx.de
86e7e01e10
Don't overoptimize when absolute frames are reflown and the containing block should return a MEW. bug 192267 r/sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@147086 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-20 11:35:29 +00:00
dbaron%dbaron.org
2fddba807f
Fix additional regression from bug 86947. b=216736 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@146972 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-16 22:05:47 +00:00
kyle.yuan%sun.com
deb559b045
Bug 215220 Unable to receive caret-move event in HTML document
...
r=aaron, sr=henry.jia
Bug 217311 [ATK Accessibility] wrong text structure for HTML text
r=bolian.yin (Not in the default build)
Bug 218992 no placeholder for broken image
r=bolian.yin (Not in the default build)
This patch aims at solving some ATK accessible text issues. The main parts of this patch (inside accessibility/src/atk directory or the #ifdef MOZ_ACCESSIBILITY_ATK/#endif macro) are not in the default build (it gets built only when the default toolkit set to gtk2)
git-svn-id: svn://10.0.0.236/trunk@146864 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-14 12:56:21 +00:00
darin%meer.net
c01c86963c
fixes bug 216736 "regression from patch for bug 86947" r+sr=dbaron a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@146228 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-20 16:49:27 +00:00
dbaron%dbaron.org
75df55b0bf
Make sure we include the overflow area in the size of views, for blocks and inlines, at least. b=79315 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@145090 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-23 00:14:16 +00:00
dbaron%dbaron.org
f10c26b785
Fix top vs bottom typo. b=190743 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@145048 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-22 06:13:45 +00:00
roc+%cs.cmu.edu
f12a3fdf92
Bug 207477. Clean up nsBlockFrame, and don't suppress invalidation in nsBlockFrame::ReflowLine if it's a resize reflow. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@144867 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-15 00:04:43 +00:00
dbaron%dbaron.org
593f58592d
Remove hint parameter from AttributeChanged methods and simplify style hint mechanism. b=211308 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@144735 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 21:16:12 +00:00
timeless%mozdev.org
74b0dfbdb3
Bug 211183 Infinite loop in nsBlockFrame::DoRemoveFrame
...
r=dbaron sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@144349 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-01 18:28:30 +00:00
roc+%cs.cmu.edu
fc35098277
Ongoing deCOMtamination. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@144189 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-26 11:30:17 +00:00
dbaron%dbaron.org
519cf3b3d3
DeCOMtaminate nsIFrame::GetView and SetView, and add HasView, GetClosestView, and AreAncestorViewsVisible to consolidate common patterns. b=208004 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@143960 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-19 23:44:01 +00:00
kin%netscape.com
20a95c95e4
Fix for bug 205165 (a href link fails to work until window is resized)
...
Modified PlaceFrameView() to pass in the cached overflow area rect for the frame, if it has one, when calling
SyncFrameViewAfterReflow().
r=jkeiser@netscape.com sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@143337 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-05 17:42:29 +00:00
roc+%cs.cmu.edu
360ffeb90a
Bug 193686. nsContainerFrame needs to report the overflowList as one of its child frame lists. Also, overflow frames should be destroyed when their parent is destroyed. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@143163 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-02 04:03:07 +00:00
bmlk%gmx.de
b9f1fd315b
infrastructure to recover overflow area during incremental reflow, bug 197581, r=kin sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@143137 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-31 10:32:19 +00:00
jkeiser%netscape.com
d214c656a8
Fix crash printing fixed-position float elements (bug 200347), r=kin@netscape.com, sr=dbaron@dbaron.org, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@142762 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-22 20:56:35 +00:00
dbaron%dbaron.org
69da9d4a19
Clean up API (and its callers) for getting style data: remove unneeded null checks and switch to new inline member functions (one for each struct) that return values. b=197205 r+sr=roc a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@142488 18797224-902f-48f8-a5cc-f745e15eee43
2003-05-15 03:42:21 +00:00
roc+%cs.cmu.edu
48f5e93a92
Bug 201767. Make nsBlockFrame::GetAdditionalChildListNames return the overflowList. Also, don't create scrollbars in print contexts except for the viewport scrollbar. r+sr=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@141562 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-22 01:33:14 +00:00
bzbarsky%mit.edu
fe8997ff0a
Fix crash when composer and comboboxes interact. The real fix is in
...
nsComboboxControlFrame; the nsBlockFrame changes are just cleanup the fix
enables. Bug 197942, r=jkeiser, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@141067 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 16:06:54 +00:00
roc+%cs.cmu.edu
d4ac9a5795
Bug 126263. Whack comboboxes/listboxes to use Gfx scrollbars. Also, make scrollbars attach their XBL content only when they become visible, to avoid pageload hit. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@140858 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:50:57 +00:00
roc+%cs.cmu.edu
4dfef42d7f
Bug 197065. Do more complete invalidation on block size changes. r=jkeiser,sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@140754 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 21:27:45 +00:00
dbaron%dbaron.org
0465d009bf
Fix incremental reflows of <br clear=all>. b=157444 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@140250 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 15:24:07 +00:00
timeless%mozdev.org
0e5f07166f
Bug 106386 rid source of misspellings
...
patch by nb@ipnode.info r=biesi sr=dmose
git-svn-id: svn://10.0.0.236/trunk@140130 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-24 04:15:34 +00:00
kyle.yuan%sun.com
fcde9c769e
Bug 193656 [ATK Accessibility] implement accessible object for block frame
...
r=aaronl, sr=henry.jia
git-svn-id: svn://10.0.0.236/trunk@138910 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 02:51:36 +00:00
kin%netscape.com
e0cac23611
Fix for bug 191339: M130A Trunk crashing while printing [@ nsLineLayout::ReflowFrame]
...
Modified nsBlockFrame::Reflow() so that it reparents the frames in the overflow placeholder list when handing it off to an
ancestor that does not already have an overflow placeholder list.
r+sr=dbaron@dbaron.org
git-svn-id: svn://10.0.0.236/trunk@138348 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 19:02:08 +00:00
dbaron%dbaron.org
897a1a273b
Change the way we calculate max-element-width for blocks with floaters: stop trying (and sometimes failing) to ensure that there can always be text next to the floater. b=186593 r+sr=roc+moz
...
git-svn-id: svn://10.0.0.236/trunk@138197 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 16:19:31 +00:00
dbaron%dbaron.org
e6a2b29ebf
Remove nsISizeOfHandler and associated SizeOf methods. b=106792 r=bzbarsky sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@138193 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 15:34:38 +00:00
bryner%netscape.com
c44337949a
Remove nsIStyleContext (bug 114713), r/sr=dbaron. Changed lots of methods to use nsStyleContext* or already_AddRefed<nsStyleContext> as return values, depending on whether a reference is returned. Turn on nsRefPtr (bug 104346), and change nsDerivedSafe to not declare AddRef and Release explicitly virtual, r=jag, sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@138129 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-22 00:32:13 +00:00
karnaze%netscape.com
8ece4a7c7a
bug 179683 - implement printing of fixed positioned elemements, clean up ViewportFrame. sr=roc, r=bzbarsky.
...
git-svn-id: svn://10.0.0.236/trunk@136686 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-20 18:04:34 +00:00
karnaze%netscape.com
dc2886a303
back out patch for bug 176423 (which I mistook for having sr). I'll leave the regression test case, since it doesn't crash.
...
git-svn-id: svn://10.0.0.236/trunk@136645 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 20:44:23 +00:00
karnaze%netscape.com
64afda8ff4
bug 176423 - Consider overflowing children when calculating max element width. sr=kin, r=alexsavulov.
...
git-svn-id: svn://10.0.0.236/trunk@136644 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 20:25:29 +00:00
aaronl%netscape.com
ee27cb1b5c
Bug 98546. Fix word break detection to improve select by word where there is punctuation in the word. Also fixes 125172, double clicking in URL bar should select only part of URL. Also fixes bug 133312, word selection with accented letters. r=brade, sr=sfraser
...
git-svn-id: svn://10.0.0.236/trunk@136088 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 20:56:53 +00:00
dbaron%dbaron.org
a569c670f5
Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky
...
git-svn-id: svn://10.0.0.236/trunk@136064 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-09 14:26:32 +00:00
dbaron%fas.harvard.edu
ffb8d9cca7
Change my email address from dbaron@fas.harvard.edu to dbaron@dbaron.org. Comment changes only.
...
git-svn-id: svn://10.0.0.236/trunk@135757 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-01 23:53:20 +00:00
dbaron%fas.harvard.edu
a436a28cb1
Reduce code size by using PaintSelf member function to paint background, border, and outline. b=184702 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@135596 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-23 22:05:47 +00:00
roc+%cs.cmu.edu
55be3c1d27
Backing out fix for bug 170330... againr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@135565 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-22 05:40:51 +00:00
roc+%cs.cmu.edu
b997358c68
Bug 170330. Factor out overflowArea calculations and take into account overflow:hidden. Also improve calculations of clipping for invalidation in the view manager. r+sr=dbaron
...
git-svn-id: svn://10.0.0.236/trunk@135555 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-21 23:25:38 +00:00
dbaron%fas.harvard.edu
a7efa8275b
Replace NS_BLOCK_WRAP_SIZE with making unconstrained-width reflow of frames with NS_BLOCK_SPACE_MGR consider the floats. This means we no longer use the overflow area for layout (other than the overflow property). Handle right floaters in unconstrained width reflow by just treating them as left floaters. b=172896 r+sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@135476 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-19 00:12:08 +00:00
dbaron%fas.harvard.edu
10a7236c6a
Correctly implement text-decoration in standards mode by drawing the underline on the element with the text-decoration property set. Refactor painting code a bit to avoid code duplication. Patch by Esben Mose Hansen <esben@oek.dk>, with paint refactoring and some other changes by dbaron. r=dbaron sr=bzbarsky b=1777
...
git-svn-id: svn://10.0.0.236/trunk@135099 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 04:00:18 +00:00
dbaron%fas.harvard.edu
0da606ffe7
Clean up twisty maze of IBMBIDI ifdefs related to HorizontalAlignFrames and fix an RTL alignment bug. b=131023 r=smontagu sr=roc
...
git-svn-id: svn://10.0.0.236/trunk@135094 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-11 02:38:33 +00:00
roc+%cs.cmu.edu
4d55566a79
Backing out fix for bug 170330 due to Tp regression
...
git-svn-id: svn://10.0.0.236/trunk@134882 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-06 04:32:07 +00:00