1079 Commits

Author SHA1 Message Date
roc+%cs.cmu.edu
1df6a398e4 Bug 262760. Do Begin/EndUpdateViewBatch around all reflows and restyling. Also, make the refresh flags in EndUpdateViewBatch mean the same thing as they do in UpdateView. In particular we introduce NS_VMREFRESH_DEFERRED. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@163455 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-09 01:39:21 +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
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
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
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
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
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
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
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
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
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
aaronleventhal%moonset.net
ef3f8b9010 Bug 254966. Make css scrollable elements tab navigable. r=mats, sr=roc
git-svn-id: svn://10.0.0.236/trunk@161578 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 14:58:34 +00:00
bryner%brianryner.com
ffa6c10070 Remove unneeded nsIFocusTracker interface, changing all users to nsIPresShell (bug 257596, r+sr=roc).
git-svn-id: svn://10.0.0.236/trunk@161569 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 05:16:00 +00:00
bryner%brianryner.com
43628f9edf More nsIPresShell deCOMtamination:
- Made Get/SetAuthorStyleDisabled and ReconstructStyleData non-virtual when called internally.
- Inlined GetFrameSelection and renamed it to FrameSelection.
- Removed non-inline version of GetViewManager.
- Removed unused EnablePrefStyleRules and ArePrefStyleRulesEnabled.

Bug 253889, r+sr=roc.


git-svn-id: svn://10.0.0.236/trunk@161442 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-29 03:08:44 +00:00
bryner%brianryner.com
ff2bc0b69e Trying again to land support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161182 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-24 18:50:29 +00:00
bryner%brianryner.com
2ac3245dec Backing out 253888 again due to Tp regression plus another problem I noticed (frame properties not getting destroyed on frame destruction)
git-svn-id: svn://10.0.0.236/trunk@161116 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 07:10:50 +00:00
bryner%brianryner.com
0501b2872a Second try at landing support for content node properties (bug 253888). r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161115 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-22 04:58:44 +00:00
bryner%brianryner.com
03c6a8279c Backing out bug 253888 until I can figure out how to fix the crash
git-svn-id: svn://10.0.0.236/trunk@161097 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 06:27:54 +00:00
bryner%brianryner.com
e49f4fa38e Refactor the frame property code and use it for supporting properties on dom elements. Bug 253888, r=jst, sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@161096 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-21 05:09:50 +00:00
jst%mozilla.jstenback.com
daf8d7f24a Fixing bug 198254. Fix crash when closing javascript created window. r+sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@160932 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-18 22:13:10 +00:00
bzbarsky%mit.edu
bc3dc7ebe0 Do style reresolves and restyles due to attribute changes asynchronously so
that pages that modify two or more style properties of the same object in a row
work faster.  Bug 230170, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@160587 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-10 03:24:41 +00:00
mats.palmgren%bredband.net
c3b56c8527 Fix keyboard scrolling for elements using overflow:scroll by scrolling the nearest scrollable view from the caret. b=251986 r=roc sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160447 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-06 15:55:17 +00:00
neil%parkwaycc.co.uk
0bbab9b402 Bug 32372 should be possible to completely disable CSS p=fantasai@inkedblade.net r=me (xpfe) r/sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@160395 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-05 11:38:42 +00:00
bryner%brianryner.com
736c955c54 Remove non-inlined version of nsIPresShell::GetDocument(). Bug 253889, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160208 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-02 04:52:55 +00:00
bryner%brianryner.com
865734bf2f Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
git-svn-id: svn://10.0.0.236/trunk@160184 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-31 23:15:21 +00:00
bryner%brianryner.com
b17b3249f7 Consolidate PresContext classes into a single nsIPresContext implementation, and finish deCOMtaminating it. Bug 253470, r+sr=roc.
git-svn-id: svn://10.0.0.236/trunk@160067 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-29 19:41:39 +00:00
dbaron%dbaron.org
59572fab24 Move things that aren't author stylesheets out of nsDocument's mStyleSheets array to simplify stylesheet management code. Add a level of the cascade for style attributes and ensure that there's only one rule processor per level of the cascade, and simplify the logic of nsCSSRuleProcessor creation. b=252578 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159965 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-28 07:08:41 +00:00
dbaron%dbaron.org
4fe0d9c583 Reframe all image box frames on theme change, as a workaround for chrome: URL comparison mess. b=252703 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159936 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 23:31:08 +00:00
roc+%cs.cmu.edu
3687f1ad35 Bug 217120. Make the scroll position restoration logic in nsPresShell actually use the right scroll and scrollbox frames. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159918 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-27 18:16:10 +00:00
cbiesinger%web.de
b27e0031f5 Bug 252948 remove *WithConversion in layout
r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@159832 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-25 12:18:04 +00:00
roc+%cs.cmu.edu
56a1f1002d Bug 217120. Always make an attempt to scroll to history position after restoring scroll position in EndLoad, just in case no reflows happen again. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159746 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-23 21:39:47 +00:00
cbiesinger%web.de
9ab54454e8 Bug 113243 Get rid of (Compare|Equals)WithConversion
r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@159612 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-21 20:18:39 +00:00
dbaron%dbaron.org
24cd030914 Add null-check. b=226791 r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@159450 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-18 21:55:24 +00:00
dbaron%dbaron.org
33a6ecdc76 Restore ReResolveMenusAndTrees code, which is needed for theme switching. b=226791 r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@159412 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-18 01:16:27 +00:00
aaronleventhal%moonset.net
68db552d54 Bug 151375. Implement css2 outline (still called -moz-outline for now). Makes -moz-outline draw outside of the current frame. Improves appearance of focus outline. Lots of help from roc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159341 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 16:56:21 +00:00
aaronleventhal%moonset.net
aac51e9f0b Backing out bug 151375 for now, because of scrolling regressions in HTML and XUL listboxes and comboboxes
git-svn-id: svn://10.0.0.236/trunk@159268 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-15 18:57:47 +00:00
aaronleventhal%moonset.net
c361ea9f16 Bug 151375. Implement css2 outline (still called -moz-outline for now). Makes -moz-outline draw outside of the current frame. Improves appearance of focus outline. Lots of help from roc. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@159196 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 21:58:34 +00:00
dbaron%dbaron.org
580a260d87 Null check mViewManager. b=248343 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@158439 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-24 21:56:29 +00:00
dbaron%dbaron.org
41ff3ad83f Update :hover state and mouse cursor and send mouse events when the position of the pointer changes due to scrolling or reflow. b=20022 r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@158287 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-22 04:32:52 +00:00
cbiesinger%web.de
e5b61970b9 bug 227313 patch by Ludovic Hirlimann <qa-mozilla@hirlimann.net> r+sr=roc
remove unused code related to PresShell::ScrollFrameIntoView(nsIFrame*)


git-svn-id: svn://10.0.0.236/trunk@158114 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-18 14:54:56 +00:00
roc+%cs.cmu.edu
0b0fa89131 Bug 226439. Convert codebase to use AppendLiteral/AssignLiteral/LowerCaseEqualsLiteral. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157992 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-17 00:13:25 +00:00
cbiesinger%web.de
ff1bd6473d bug 196380
o) move nsCopySupport into content (from layout), it belongs there better
o) add an |currentURI| attribute to nsIImageLoadingContent which allows access to the URI that is currently being displayed
o) use that from the image uri copy code
xpfe part: r=neil.parkwaycc.co.uk sr=bz rest: r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@157435 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-05 17:57:00 +00:00
bzbarsky%mit.edu
2ce7c13354 When scrolling to form controls on focus, make sure to flush out pending
reflows first.  Bug 245133, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@157195 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-31 20:56:55 +00:00
bzbarsky%mit.edu
73690f9d73 Change FlushPendingNotifications to have more granularity and update callers to
only flush the things they really need flushed.  Bug 144072, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@157037 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-27 22:08:42 +00:00
bzbarsky%mit.edu
e26ec45382 Remove nsIViewManager::GetWidgetForView; move callers over to
nsIView::GetNearestWidget.  Part of bug 243723, r+sr=roc


git-svn-id: svn://10.0.0.236/trunk@156491 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-18 01:13:45 +00:00
roc+%cs.cmu.edu
92e59ef827 Backing out 233441.
git-svn-id: svn://10.0.0.236/trunk@156464 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-17 16:29:13 +00:00
roc+%cs.cmu.edu
1eea5c536c Bug 233441. Make nsViewManager always have a root view, you can't change it. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@156019 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-06 03:17:14 +00:00