340 Commits

Author SHA1 Message Date
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
roc+%cs.cmu.edu
2d2444ef45 Bug 318425. Make sure the scrolled frame's view is set to include the overflow area of its frame. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@186240 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-19 01:07:41 +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
timeless%mozdev.org
a05383ef1b Bug 106386 Correct misspellings in source code
patch by mats.palmgren@bredband.net r=dbaron sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@185018 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-20 22:05:24 +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
3018abfa20 Bug 227121. A scrolled element's frame size should be set to the max of its desired size and the scrollport size, and should not depend on its overflow. Fixes an incremental reflow bug with scrolled frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@184064 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-02 23:35:37 +00:00
cvshook%sicking.cc
b26f9f52fb Bug 311827: Make GetAttr return a bool rather then an nsresult.
r/sr=bz


git-svn-id: svn://10.0.0.236/trunk@183185 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-28 11:25:24 +00:00
roc+%cs.cmu.edu
9c37faadc0 Bug 295941. Remove hack that is obsolete on the trunk now that Eli has fixed event dispatch coordinates. patch by Eli Friedman, r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@182685 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-21 02:50:35 +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
b747c5efb5 Bug 305160. Target viewport scroll events at the document, not the root element (they will bubble to the window from there). Always stop bubbling of scroll events out of an element. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@181748 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-07 01:28:27 +00:00
bzbarsky%mit.edu
fe07e4df3d Make sure scrollcorners are always boxes. Bug 310919, r=dbaron, sr=neil
git-svn-id: svn://10.0.0.236/trunk@181630 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-04 23:49:39 +00:00
cst%andrew.cmu.edu
ec3d38fd28 Bug 278739 Reloading a page whose length changes should not cause scroll position to change
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@180502 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-18 14:50:26 +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
bmlk%gmx.de
0606f552eb pixel align pct based scroll frames bug 139843 r/sr=roc
git-svn-id: svn://10.0.0.236/trunk@178802 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 18:11:45 +00:00
roc+%cs.cmu.edu
01b8ec2e94 Bug 303458. Check in rest of patch for 295673. Doh!
git-svn-id: svn://10.0.0.236/trunk@178727 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 20:44:23 +00:00
roc+%cs.cmu.edu
7bb639f3e7 Bug 189308. Checking in the changes to address dbaron's comments, left out of the orginal checkin.
git-svn-id: svn://10.0.0.236/trunk@178590 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 04:16:38 +00:00
roc+%cs.cmu.edu
6a0f96c99e Fixing build bustage ... variable named 'min' seems to conflict with some macro. r+sr=NOBODY AT ALL\! HAHAHAHA\!
git-svn-id: svn://10.0.0.236/trunk@178576 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 00:22:41 +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
6fd1b09b01 Bug 295673. Fix up GetActualScrollbarSizes so that padding doesn't confuse it. r+sr=dbaron, a=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@177011 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-02 20:19:34 +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
38bb755f3e Bug 293504. Make MEW/max-width calculations in scrollframes consistent with regular reflow about how we handle the scrollbar width. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@175285 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-29 04:17:21 +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
bmlk%gmx.de
26006fb9e8 make the MEW for scrollframes content independent as they can scroll the content if the available size shrinks, bug 295459 r/sr=roc a=shaver
git-svn-id: svn://10.0.0.236/trunk@174110 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-03 06:04:23 +00:00
bzbarsky%mit.edu
d1a3868aa5 Not all scrollable children of the viewport are the root scrollframe. Fix
semi-hangs when fixed-pos elements have non-visible overflow.  Bug 295292,
r+sr=roc, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@173848 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-31 18:30:27 +00:00
roc+%cs.cmu.edu
86fb15307d Bug 293453. Hack scrolled frame NS_FRAME_OUTSIDE_CHILDREN to work around event handling bug. r+sr=bzbarsky,a=asa
git-svn-id: svn://10.0.0.236/trunk@173462 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 23:04:45 +00:00
roc+%cs.cmu.edu
6c13770343 Bug 292312. Take scrollbar pref-sizes into account. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@173198 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-08 22:33:40 +00:00
roc+%cs.cmu.edu
fc69777e94 Bug 292431. Don't resize the scrolled frame's view until we know exactly what size it should be ... avoids unnecessary repainting. r+sr=bzbarsky,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@173197 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-08 22:17:03 +00:00
roc+%cs.cmu.edu
d86d34fe37 Bug 292370. Adjust instrinsic widths in nsHTMLScrollFrame to account for 'width','min-width' and 'max-width' style settings. r+sr=dbaron,a=mkaply
git-svn-id: svn://10.0.0.236/trunk@173015 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-03 21:15:55 +00:00
roc+%cs.cmu.edu
5a73cc999a Bug 47710. Get padding right in scrollframes. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@172969 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 22:49:44 +00:00
roc+%cs.cmu.edu
ca3be43c02 Checked in wrong patch. Backing out.
git-svn-id: svn://10.0.0.236/trunk@172939 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 04:48:59 +00:00
roc+%cs.cmu.edu
9e1ef0858d Bug 47710. Fix padding inside scrollframes. r+sr=dbaron,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@172937 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 04:26:38 +00:00
roc+%cs.cmu.edu
e83744f868 Bug 292286. Fix stupid typo so that we don't reset the vertical scrollbar when there is no horizontal scrollbar. r+sr+a=dbaron
git-svn-id: svn://10.0.0.236/trunk@172935 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-02 02:16:25 +00:00
jst%mozilla.jstenback.com
ebed1ee784 Fixing bug 289940. Make chrome event handlers only receive trusted events by default. r=jonas@sicking.cc, sr=peterv@propagandism.org, a=chofmann@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@172848 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 23:48:28 +00:00
roc+%cs.cmu.edu
131435cb9a Bug 240276. Make nsHTMLScrollFrame be a regular HTML frame, not a box frame, so we don't have to go through box layout. It gets its own reflow implementation that handles min-max and lots of other good stuff. rs+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@172836 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-28 21:57:22 +00:00
roc+%cs.cmu.edu
89977d9b7c Bug 288949. Don't try to use view reparenting to handle scrolled child views. Also, fix regression so that listboxes don't always have widgets. r+sr=dbaron,a=asa.
git-svn-id: svn://10.0.0.236/trunk@171875 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-07 23:54:28 +00:00
roc+%cs.cmu.edu
a6bfe5d186 Bug 288888. Fix detection of when a scrollframe is the root scrollframe, so that we don't create scrollbars for scrolling=no IFRAMEs. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171543 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-03 22:40:25 +00:00
roc+%cs.cmu.edu
0da7df6e3e Removing debug printfs that crept in.
git-svn-id: svn://10.0.0.236/trunk@171541 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-03 21:19:37 +00:00
roc+%cs.cmu.edu
7021bee02b Bug 288117. Reland nsScrollBoxFrame removal. This will regress Tp a bit. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171539 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-03 21:00:41 +00:00
dbaron%dbaron.org
f7e591cd27 Back out roc's checkin for bug 288117 to isolate performance regressions during tinderbox downtime.
git-svn-id: svn://10.0.0.236/trunk@171429 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-31 18:04:50 +00:00
roc+%cs.cmu.edu
edd9381478 Bug 288117. Eliminate nsScrollBoxFrame. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171419 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-31 03:40:12 +00:00
bzbarsky%mit.edu
807f289552 Move reflow command construction into nsPresShell::AppendReflowCommand, remove
some members, switch some callers to the non-COM-ish apis.  Bug 267085, r+sr=rbs


git-svn-id: svn://10.0.0.236/trunk@168953 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-08 00:59:52 +00:00
bzbarsky%mit.edu
2bea98552c Remove prescontext args for some nsIFrame methods
(Append/Insert/Remove/ReplaceFrames) and for some methods in table land.  Patch
by Vidar Braut Haarr <bugmail@q1n.org>, r+sr=bzbarsky


git-svn-id: svn://10.0.0.236/trunk@168894 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-07 01:58:25 +00:00
bryner%brianryner.com
3437ee229a Remove nsIPresState (bug 279699). r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@168423 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-27 22:52:53 +00:00
neil%parkwaycc.co.uk
df2668e776 Don't use QueryInterface to get a scrollable view from a view b=258521 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@165693 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-24 00:19:21 +00:00
bzbarsky%mit.edu
f53f98f7f3 Create an api for easily converting between the coordinate systems of two
frames or two views.  Use this to fix the auto-positioning of abs pos boxes to
work no matter how their containing block and the block their placeholder lives
in are related, and convert various other callers to the new API.  Bug 266968,
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@164857 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-03 16:16:57 +00:00
darin%meer.net
ed9e4d3d7a eliminating uses of deprecated nsComponentManager:: methods (bug 267040), r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@164735 18797224-902f-48f8-a5cc-f745e15eee43
2004-11-01 18:50:36 +00:00
bmlk%gmx.de
f7f774656e improve MEW computation for scrollframes during incr. reflow bug=234593 r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@164606 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-29 17:36:58 +00:00