306 Commits

Author SHA1 Message Date
dbaron%dbaron.org
c17b6b4c3d Fix state restoration for RTL cases. b=331607 Patch from Hideo Saito <saito@densan.co.jp>. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@193832 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-07 19:51:46 +00:00
dbaron%dbaron.org
38dfc5e1f2 Reorder FinishAndStoreOverflow and SyncFrameViewAfterReflow so it does what I intended. b=331458 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193244 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-30 04:26:36 +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
dbaron%dbaron.org
39a926c190 Fix two regressions related to sizing of canvas frames. b=331458 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@193023 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-26 22:12:54 +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
e3404f83e9 Add comment about importance of view sizing. b=330732 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192820 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-23 00:11:43 +00:00
dbaron%dbaron.org
32758d4ffd Avoid potential problems initializing attributes to -1. b=192767 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@192763 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-22 07:10:31 +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
705600853e Bug 328881. Set the frame offset of scrolled frames correctly. This shouldn't affect anything immediately --- the offset is not used currently --- but it helps prepare for view removal and I'd like to catch regressions now. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@192082 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-09 18:46:14 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
bzbarsky%mit.edu
7ea406aa26 Revert nsIGlobalHistory2 to what it was on the 1.8 branch. Move the new stuff
to nsIGlobalHistory3.  Bug 328928, r=brettw and smfr, sr=darin


git-svn-id: svn://10.0.0.236/trunk@191656 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-03 03:34:48 +00:00
roc+%cs.cmu.edu
23e90c981a Bug 78087. Propagate the canvas background to be the background of the entire viewport so it z-orders correctly in the viewport's stacking context. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@188972 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-05 20:52:13 +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
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