4623 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
1f87738ac5 Bug 261040. Make sure that scrollframe borders are not included in GetActualScrollbarSizes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162932 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 02:19:06 +00:00
roc+%cs.cmu.edu
22c664a250 Bug 260896. When a floating first-letter frame reports FRAME_IS_NOT_COMPLETE after reflow, (then unlike blocks) that does NOT mean that it needs to continue on the next page! It just means it has an inline continuation. So correct its reflow status early in ReflowFloat so that we don't confuse the heck out of block reflow. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162931 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 02:18:25 +00:00
roc+%cs.cmu.edu
f303e742c2 Bug 261040. Make sure that scrollframe borders are not included in GetActualScrollbarSizes. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162930 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 02:08:51 +00:00
roc+%cs.cmu.edu
633d64dd17 Bug 261128. Protect scrollframes from dying if the prescontext's container goes away (it's a weak ref). r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162929 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 01:46:55 +00:00
aaronleventhal%moonset.net
df1a357353 bug 247323: kbd stops working after visiting oddpost, anything with <iframe src=javascript:1>. r=dbaron, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@162879 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 18:41:15 +00:00
aaronleventhal%moonset.net
d45fca0e31 bug 258937: form elements in Midas are focusable. r=glazou, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@162878 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 18:40:50 +00:00
bryner%brianryner.com
d80f327086 Unify box and frame trees by moving nsIBox methods onto nsIFrame. XUL-box frames can call the superclass nsBox implementation, all other frames get the nsFrame implementation of the box methods, which acts like nsBoxToBlockAdaptor used to. Bug 258513, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@162876 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-28 18:37:50 +00:00
roc+%cs.cmu.edu
d2e60997b8 Bug 251586. Allow a scrollbar to appear whenever it fits, even if the resulting visible size is zero. r+sr=dbaron,a=asa
git-svn-id: svn://10.0.0.236/trunk@162847 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-27 19:21:41 +00:00
jst%mozilla.jstenback.com
7ae7afb188 Fixing bug 181364. Fixing problem with drag events in windowless plugins by making the code work as it has always worked on Mac, i.e. prevent drag events on plugins from being eaten by the browser. r=bzbarsky@mit.edu, sr=brendan@mozilla.org, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@162844 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-27 18:56:07 +00:00
neil%parkwaycc.co.uk
e4263e6587 Bug 76197 Unscrollable scrollbars should look disabled r=varga sr=roc
git-svn-id: svn://10.0.0.236/trunk@162658 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-22 06:33:36 +00:00
roc+%cs.cmu.edu
af0a174a7c Bug 260624. Handle case where scrollframe state is restored before its scrollbox has been created. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162627 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 21:41:01 +00:00
roc+%cs.cmu.edu
5f2bf6d3a4 Bug 258175. Always capture the mouse at the root of the document if we haven't captured it in any child. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162594 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 13:58:22 +00:00
roc+%cs.cmu.edu
e328b8648c Bug 260515. Fix obviously broken code in CombineBreakType. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162593 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 13:56:06 +00:00
dbaron%dbaron.org
cdd43406c9 Don't allow the user to scroll things that are 'overflow: hidden'. b=259615 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162578 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 04:41:08 +00:00
kyle.yuan%sun.com
27ce42a23d Bug 237228 pref "layout.word_select.eat_space_to_next_word" can't be set by user in the profile's prefs.js
r=dbaron, sr=roc, patch=ginn.chen@sun.com


git-svn-id: svn://10.0.0.236/trunk@162576 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-21 04:25:08 +00:00
neil%parkwaycc.co.uk
7903ea1651 Don't use QueryInterface to get a view from a scrollable view b=258521 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162561 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 22:25:07 +00:00
pete.zha%sun.com
dad2cb31dd bug 234470
There is something wrong with plugin printing on linux or unix
r=leon.sha@sun.com
sr=roc
patch=roland


git-svn-id: svn://10.0.0.236/trunk@162543 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-20 06:46:16 +00:00
roc+%cs.cmu.edu
0c4ce3d86f Bug 257612. Fix dynamic margin changes by 1) Propagate IsPreviousMarginDirty through empty lines 2) Reflow any line whose previous margin is dirty. 3) If a reflowed line could have been tested in a subsequent line's ShouldApplyTopMargin both before and after reflow, and might have been empty before or after reflow, then make the next line's previous margin dirty. 4) If reflowing a block changes its carried-out margin, then mark the next line's previous margin dirty. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162521 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-18 14:39:07 +00:00
roc+%cs.cmu.edu
6f45d28987 Bug 248825. Correctly push overflowing float placeholders to the start of the overflow lines in the case where the first overflow line is a block. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162479 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-17 00:02:56 +00:00
dbaron%dbaron.org
7d40175fee Remove effectively-unused Set/GetScrollPreference API on nsIScrollableView.h. b=259617 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162387 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-15 19:16:43 +00:00
roc+%cs.cmu.edu
ab88d1e1ac Bug 259032. DeCOMtaminate nsIFrame::GetNext/PrevInFlow. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@162269 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 02:28:03 +00:00
roc+%cs.cmu.edu
26dae9e55b Bug 257216. Fix sundry block issues for columns. In particular, remove overflowing floats from the space manager before we compute the space manager's XMost and YMost to include in the block size. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@162210 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 13:35:46 +00:00
dbaron%dbaron.org
bbe291225f The slow codepaths for fixed background-attachment should only apply when there's a background image. b=258793 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@162195 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 05:39:27 +00:00
bzbarsky%mit.edu
068c8b28b1 Fix crash due to text inputs flushing pending restyles while we're in text
control frame code.  Bug 257818, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@162194 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 04:19:58 +00:00
dbaron%dbaron.org
161ac90313 Convert mCurrentEventContent and mCurrentEventContentStack to use nsCOMPtr/nsCOMArray. b=258667 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@162192 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 03:22:46 +00:00
roc+%cs.cmu.edu
007e533df8 Bug 258118. Ensure that float breaks are eventually honoured even if the line with the break is not reflowed and the following line is empty. r+sr=dbaron(rubber-stamp)
git-svn-id: svn://10.0.0.236/trunk@162191 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 02:21:35 +00:00
roc+%cs.cmu.edu
d9025f99fb Bug 257916. Move history scroll position save and restore from nsScrollBoxFrame to nsHTML/XULScrollFrame. +sr=dbaron(rubber-stamp)
git-svn-id: svn://10.0.0.236/trunk@162190 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-13 02:10:29 +00:00
dbaron%dbaron.org
a4ca9058c6 Separate concept of stylesheet URI into base URI (for resolving relative links) and sheet URI (for everything else), since they can differ for style elements (and inline style and style set from script, but that's for the next patch). Some other things (relating to external stylesheets, where it doesn't make a difference) that probably should use the sheet URL are left as the base URL for now because I didn't want to change too much at once. b=255538 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@162059 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 06:45:59 +00:00
jst%mozilla.jstenback.com
6d9a847d4a Landing fix for bug 258487, patch by Wladimir Palant <trev@gtchat.de>. Add code to check a pref for how to treat popups opened by a plugin. r+sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@161999 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-09 18:53:21 +00:00
jst%mozilla.jstenback.com
08a3874eb0 Eliminating dead code. Patch by trev@gtchat.de. r+sr=jst@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@161885 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-07 22:34:02 +00:00
roc+%cs.cmu.edu
25c92b6a90 Bug 254039. deCOMtaminate nsIScrollableFrame. r+sr=roc, patch by Will Levine
git-svn-id: svn://10.0.0.236/trunk@161806 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-06 02:44:43 +00:00
dbaron%dbaron.org
d078282226 Land bug 72747 in pieces: Implement overflow-x and overflow-y. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161772 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-05 00:04:04 +00:00
dbaron%dbaron.org
f9bdcbfb99 Land bug 72747 in pieces: Implement scrolling='yes' (and equivalents) on frames and iframes. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161771 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 23:03:04 +00:00
jst%mozilla.jstenback.com
809b317cb3 Fixing bug 252326. Fixing some popup blocker problems. Making sure only trusted events get mark trusted, and only allow popups while processing trusted (initiated by the user) events. Patch by trev@gtchat.de and jst@mozilla.org, r=bzbarsky@mit.edu, rs=brendan@mozilla.org, bryner@biranryner.com
git-svn-id: svn://10.0.0.236/trunk@161765 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 19:28:46 +00:00
dbaron%dbaron.org
e53ac83c0a Back out previous round of bug 72747 changes due to Tp regression.
git-svn-id: svn://10.0.0.236/trunk@161749 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 08:34:55 +00:00
dbaron%dbaron.org
b8499fbfc0 Land bug 72747 in pieces: Simplify the mechanisms used to prevent framesets from having scrollbars and used to implement the scrolling attribute on frames and iframes. Implement scrolling='yes'. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161744 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 06:53:36 +00:00
dbaron%dbaron.org
22aae5389e Back out text input changes from bug 72747.
git-svn-id: svn://10.0.0.236/trunk@161743 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 03:49:25 +00:00
dbaron%dbaron.org
09307f3c9f Back out text input changes from bug 72747.
git-svn-id: svn://10.0.0.236/trunk@161742 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-04 03:17:18 +00:00
dbaron%dbaron.org
d223d8305c Land bug 72747 in pieces: A little cleanup. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161738 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 23:57:42 +00:00
dbaron%dbaron.org
6bd6d2aaf3 Land bug 72747 in pieces: Remove mNeverHas*Scrollbar variables which are unneeded since the m*ScrollbarBox null-checks handle their one remaining user. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161735 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 23:29:38 +00:00
dbaron%dbaron.org
d9fbd9ddf7 Land bug 72747 in pieces: Remove mNeverHas*Scrollbar variables which are unneeded since the m*ScrollbarBox null-checks handle their one remaining user. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161734 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 23:28:26 +00:00
dbaron%dbaron.org
76aef2c246 Land bug 72747 in pieces: use CSS instead of C++ to ensure single line text inputs don't have scrollbars. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161732 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 23:22:15 +00:00
dbaron%dbaron.org
a327321c0a Land bug 72747 in pieces: use CSS instead of C++ to ensure single line text inputs don't have scrollbars. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161731 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 23:17:18 +00:00
timeless%mozdev.org
233b435aa1 Bug 257877 replacement content isn't rendered if gkplugin.dll isn't present
r=jst sr=bz


git-svn-id: svn://10.0.0.236/trunk@161726 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 21:49:13 +00:00
dbaron%dbaron.org
7fe37df265 Land bug 72747 in pieces: remove nsIScrollableFrame::GetScrollPreference. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161688 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-03 00:46:43 +00:00
dbaron%dbaron.org
e8aae32dd7 Land bug 72747 in pieces: use new functions for common overflow tests. b=72747 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161682 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 23:27:23 +00:00
neil%parkwaycc.co.uk
32381ec076 Bug 257721 nsPresShell::PostAttributeChange needs to construct its nsAttributeChangeRequest (HandlePostedAttributeChanges was already calling the destructor) r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@161653 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 08:56:30 +00:00
kyle.yuan%sun.com
e826d2ca87 Bug 254997 Caret tracking by line (down arrow) skips over huge portions of the document. r=aaronl, sr=roc, patch=ginn.chen@sun.com
git-svn-id: svn://10.0.0.236/trunk@161640 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 05:02:53 +00:00
bryner%brianryner.com
ae9e02402a deCOMify nsIPresShell::GetRootFrame. Change callers inside of gklayout to use FrameManager()->GetRootFrame() instead so that the call can be inlined. Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@161637 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-02 03:08:51 +00:00
jst%mozilla.jstenback.com
57e55d8a58 Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@161580 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 16:50:12 +00:00