120 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
16efba0a15 Bug 425253. Propagate reflow-depth tracking through XUL box layout. r+sr=dbaron,a=damon
git-svn-id: svn://10.0.0.236/trunk@249966 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-10 04:39:42 +00:00
roc+%cs.cmu.edu
9467183c9f Bug 405952. Add scrollbar width to pref and min widths for overflow:scroll elements but for no other overflow values. r+sr=bzbarsky,dbaron,dholbert, a=beltzner
git-svn-id: svn://10.0.0.236/trunk@246753 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-28 20:37:06 +00:00
roc+%cs.cmu.edu
78603720e9 Bug 407095. Reflow in more situations where horizontal scrollbar appears or disappears. May hurt Tp, let's watch. r+sr=dbaron,a=damon
git-svn-id: svn://10.0.0.236/trunk@246355 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-23 10:16:00 +00:00
Olli.Pettay%helsinki.fi
3b68db91c5 Bug 392698, ASSERTION: can't mark frame dirty during reflow, r+sr=roc, a=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@241872 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 23:49:46 +00:00
roc+%cs.cmu.edu
82bba27062 Bug 407015. Dropdown listboxes should not propagate computed height from the scrollframe to its scrolled content. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@240595 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-07 00:10:32 +00:00
roc+%cs.cmu.edu
a497169ebc Bug 375304. Make nsHTMLScrollFrame handle situations where the child content height depends on our height. patch by Eli Friedman, r+sr=roc,dbaron
git-svn-id: svn://10.0.0.236/trunk@240490 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-05 03:05:57 +00:00
reed%reedloden.com
ffb383f98a Bug 395628 - ""ASSERTION: post-reflow queues not empty" with feed in <frame>" [p=mats.palmgren@bredband.net (Mats Palmgren) r=smaug r+sr=dbaron a=blocking1.9+]
git-svn-id: svn://10.0.0.236/trunk@240204 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-01 07:22:45 +00:00
sharparrow1%yahoo.com
7645b7424a Bug 381645: Remove nsBoxFrame::GetContentOf. r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@226846 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-23 03:48:43 +00:00
bzbarsky%mit.edu
4d238d61d2 Fix the vertical scrollbar guessing in nsHTMLScrollFrame to do better for an
initial reflow if we're doing that initial reflow a ways into the document
load.  Bug 378480, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@225067 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-26 02:29:21 +00:00
Olli.Pettay%helsinki.fi
a845d206e6 Bug 373564, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@221838 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-13 22:11:14 +00:00
roc+%cs.cmu.edu
f6ae161325 Bug 363253. Move scrollframe attribute-setting out of reflow to a post-reflow callback. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@221296 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-05 01:39:53 +00:00
dbaron%dbaron.org
32d54152c9 Clean up IsFrameOfType methods to call their base class IsFrameOfType methods reliably. b=341326 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@220874 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-24 18:33:33 +00:00
asqueella%gmail.com
11bad405e3 bug 257868 - remove the nsIPresShell::SetAnonymousContentFor() API, make the frames store strong refs to the anonymous content instead. Decomtaminate nsIAnonymousContentCreator.
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@220517 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-18 17:34:09 +00:00
sharparrow1%yahoo.com
4e50607a9e Bug 370185: clean up view header includes (trivial). rs=bzbarsky.
git-svn-id: svn://10.0.0.236/trunk@219987 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-12 19:17:33 +00:00
sharparrow1%yahoo.com
dd459d0a71 Bug 177805: Fix the use of units in Gecko. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219640 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-07 07:46:44 +00:00
bzbarsky%mit.edu
6e5369ff05 Update scrollframes to the new GetCollapsed() API too. Bug 369127, r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@219432 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-03 00:08:19 +00:00
Olli.Pettay%helsinki.fi
ba610d02ec Bug 243370, deCOMtaminate parts of nsIFrame that come from nsIBox, part 2, p=anlan@lange.cx, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219259 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-31 16:02:42 +00:00
cvshook%sicking.cc
ccd1d6884d Kill remainders of ns(XBL|HTML|XUL|Layout)Atoms. r/sr=jst b=368128
git-svn-id: svn://10.0.0.236/trunk@219151 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-30 00:06:41 +00:00
mats.palmgren%bredband.net
8ae547d9f0 Improve overflow/underflow DOM event handling. b=365477 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@219056 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-27 22:50:18 +00:00
bzbarsky%mit.edu
eb4e268436 Fix build bustage. Bug 367587
git-svn-id: svn://10.0.0.236/trunk@218742 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:41:06 +00:00
bzbarsky%mit.edu
d9d0d2a935 Don't do XUL collapsing stuff with HTML text inputs or HTML scrollframes. Bug
335628, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@218737 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-22 04:27:31 +00:00
bzbarsky%mit.edu
4882ecb439 Make sure to do scrollbar layout if we suppressed it previously, even if we
don't obviously need to do it.  Bug 364762, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@218673 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-19 18:01:10 +00:00
bzbarsky%mit.edu
1c2a9ec997 Fix painting of focus outline for empty <select>s. Bug 362995, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@218561 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-17 23:17:30 +00:00
bzbarsky%mit.edu
9e56e89a01 deCOMtaminate nsIFrame::GetMinSize/GetPrefSize/GetMaxSize. Bug 243370, patch
by Andreas Lange <anlan@lange.cx>, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@217973 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-08 02:57:59 +00:00
mats.palmgren%bredband.net
14e7266121 Rename IsSplittable() to GetSplittableType(). b=349973 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@217227 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-20 03:52:34 +00:00
dbaron%dbaron.org
1ca9f3f372 Bug 300030: Move intrinsic width computation out of nsIFrame::Reflow and into its own methods on nsIFrame. Replace reflow reasons, types, and commands with dirty bits/notifications. Thanks to bzbarsky for almost all of the HTML form controls (mozilla/layout/forms) changes, and many others for help testing and patching. For detailed commit logs, see REFLOW_YYYYMMDD_BRANCH, where YYYYMMDD is one of 20061031, 20060830, 20060603, 20060302, 20060119, 20051011, 20050804, 20050429, 20050315, 20050111, and 20041213.
git-svn-id: svn://10.0.0.236/trunk@216738 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 05:38:33 +00:00
mats.palmgren%bredband.net
2b07153d10 1. Make scroll frames non-splittable.
2. Make a placeholder splittable only if the out-of-flow is.
3. If a float placeholder is not splittable then place it immediately
   instead of failing to reflow it because it can't be split.
b=337419 (Patch B) r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@208285 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-24 05:22:16 +00:00
roc+%cs.cmu.edu
6116366065 Bug 334765. Fix XUL boxobject coordinates to not take scrolling into account. Second try, with a patch that hopefully won't regress Tp. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200097 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-16 02:40:29 +00:00
roc+%cs.cmu.edu
0314852d54 Fixing bustage
git-svn-id: svn://10.0.0.236/trunk@199483 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 02:41:32 +00:00
roc+%cs.cmu.edu
e71eeec88a Bug 339889. Propagate invalidation through the frame hierarchy to topmost widgets. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@199477 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-08 01:11:43 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
roc+%cs.cmu.edu
b6ebd9961d Bug 328926. Remove aPresContext parameter from nsIFrame::Destroy, nsIFrame::SetInitialChildList and nsIFrame::RemovedAsPrimaryFrame. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193976 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-10 00:16:29 +00:00
dbaron%dbaron.org
b258ce85ca Single line comments to describe files (helpful in LXR)
git-svn-id: svn://10.0.0.236/trunk@193203 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-29 18:29:03 +00:00
roc+%cs.cmu.edu
140fbb3377 Bug 330934. Set a nsIFrame's stylecontext in its constructor, to ensure that there's always one available for GetPresContext() to use even if Init hasn't been called. Patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193022 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 21:30:36 +00:00
dbaron%dbaron.org
e92900026b Always use the UI direction for the scrollbar side, which is what we used to do in the most common case, but make it a pref. b=330863 r=smontagu sr=roc
git-svn-id: svn://10.0.0.236/trunk@193001 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 00:48:03 +00:00
dbaron%dbaron.org
6997cf4a86 It is no longer correct to assume 0 as a default value for curpos, due to translations of curpos when scrolling left of the viewport. b=331049 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192832 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 03:45:41 +00:00
dbaron%dbaron.org
8cfdd67955 Change our scrolling code so that it is capable of scrolling above and to the left of the viewport, and then use that capability for nsHTMLScrollFrames with RTL directionality. This removes the invariant that the child of a scrollframe (::scrolled-canvas canvas or ::scrolled-content block) will be stretched to fill the entire scrollable area and stops enforcing it, a change that's likely to cause some regressions not yet fixed within the patch. This also fixes directionality detection for the scrollframe holding the canvas (changing which side the scrollbar appears on) and fixes an old bug in the code that paints the focus ring around the canvas (so it's now again visible on all sides, even when the canvas is scrollable). b=192767 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192422 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 16:55:19 +00:00
pavlov%pavlov.net
b5c7a440ef backing out roc's patch for bug 328926 due to crash running tests on vc8 machines.
git-svn-id: svn://10.0.0.236/trunk@192407 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 06:43:36 +00:00
roc+%cs.cmu.edu
6e36f2c733 Bug 328926. Remove aPresContext parameter from Destroy and SetInitialChildList. patch by Marc Liddell, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192399 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-15 03:14:02 +00:00
roc+%cs.cmu.edu
df8627e29b Bug 317375. Reorganize frame painting and mouse event targeting around frame display lists. Some review from dbaron, lots of testing help from Martijn, Julien and others
git-svn-id: svn://10.0.0.236/trunk@188202 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-26 02:29:17 +00:00
cvshook%sicking.cc
d3d2e97d3b Bug 321294: Remove unused ReplaceFrame codepaths.
r/sr=roc


git-svn-id: svn://10.0.0.236/trunk@187266 18797224-902f-48f8-a5cc-f745e15eee43
2006-01-10 22:58:37 +00:00
bzbarsky%mit.edu
0c494d3744 Don't store the "normal" frame state for the root scrollframe, for now. Bug
318709, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@185743 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 23:56:17 +00:00
roc+%cs.cmu.edu
c4e0410c6e Bug 313817. DeCOMtaminate more NS_New*Frame functions. r+sr=roc, patch by Marc Liddell
git-svn-id: svn://10.0.0.236/trunk@184129 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-04 02:38:33 +00:00
roc+%cs.cmu.edu
cccd7adffc Bug 307158. Half-heartedly account for vertical scrollbar presence when positioning absolute children relative to the right edge of a scrollable container. r+sr=dbaron with regrets.
git-svn-id: svn://10.0.0.236/trunk@182444 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 05:00:24 +00:00
roc+%cs.cmu.edu
84761d32e5 Bug 306222. Make nsIFrame::GetContentAndOffsetsFromPoint, and nsIFrameSelection::HandleDrag, take coordinates relative to the current frame, not some random view. r+sr=roc,patch by Eli Friedman
git-svn-id: svn://10.0.0.236/trunk@179638 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-04 20:04:23 +00:00
roc+%cs.cmu.edu
1f87133eec Bug 305120. Make overflow/underflow events be posted by HTML again. Also, only post an overflow event when we go from not-overflowing to overflowing instead of every time we reflow with overflow. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@179365 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 00:57:27 +00:00
roc+%cs.cmu.edu
e62ae2d243 Bug 293714. Be smart about guessing whether a vertical scrollbar is needed when we do the first real reflow of a scrollframe; remember in global history whether the page needed a scrollbar or not. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@178883 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 00:10:37 +00:00
roc+%cs.cmu.edu
9f0e76cac1 Bug 189308. Fire onscroll for all kinds of scrollling, and consolidate multiple scrolls into one event, and delay firing the event until we've returned to our PLevent loop. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@178574 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-21 23:37:13 +00:00
roc+%cs.cmu.edu
5bae01caf2 Bug 301439. Don't update scrollbars when we do first-pass layout of a listbox. r+sr=dbaron,a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@176582 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-25 23:23:53 +00:00
roc+%cs.cmu.edu
b3806fdb92 Bug 296337. Always correct the overflow area even if NS_FRAME_OUTSIDE_CHILDREN is set. r+sr=bzbarsky,a=shaver
git-svn-id: svn://10.0.0.236/trunk@174666 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 02:57:23 +00:00