Commit Graph

384 Commits

Author SHA1 Message Date
Markus Stange
2d49769823 Bug 598482 part 20 - Rename Update to Invalidate; view updates are now always asynchronous. r=roc 2011-12-23 22:52:25 -05:00
Boris Zbarsky
4abe3b98cf Bug 598482 part 16. When flushing layout, also flush out widget geometry changes. r=roc 2011-12-23 22:52:23 -05:00
Markus Stange
7a1414d6bd Bug 598482 part 15 - Rename view update batches to refresh disable batches and only use them in the two places that can enter reflow (where synchronous painting is permitted). r=roc 2011-12-23 22:52:23 -05:00
Markus Stange
5613b8672d Bug 598482 part 11 - Set up a connection between the view manager and the refresh driver. r=roc 2011-12-23 22:52:22 -05:00
Markus Stange
87e56d30a9 Bug 598482 part 7 - Remove NS_VMREFRESH_* flags. NS_VMREFRESH_NO_SYNC is now the unchangable default. r=roc 2011-12-23 22:52:22 -05:00
Markus Stange
136f7cd4dd Bug 598482 part 2 - Remove synchronous painting APIs from nsIViewManager. r=roc 2011-12-23 22:52:21 -05:00
Neil Deakin
0ed659f60c Bug 703260, part 3, remove nsIViewObserver, r=mats 2011-11-21 12:53:20 -05:00
Neil Deakin
b15e9b4338 Bug 703260, part 1, remove view from eventstatemanager and presshell event handling, r=smaug,sr=roc 2011-11-21 12:53:20 -05:00
Timothy Nikkel
f10d3e436c Bug 658005. Part 2. Add a frame visibility API that takes into account everything we need, and use it. r=roc 2011-10-26 18:57:55 -05:00
Timothy Nikkel
0bd28c1700 Bug 695245. Misc view related code cleanup. Mostly dead code removal. r=roc 2011-10-19 14:10:13 -05:00
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
L. David Baron
27358bb81c Create nsPresShell.h with the parts of nsPresShell.cpp that should be in a header. (Bug 685786) r=roc
Note:  This adds STACK_ARENA_ to the beginning of the names of a few macros.

--HG--
rename : layout/base/nsPresShell.cpp => layout/base/nsPresShell.h
2011-09-09 12:50:21 -07:00
Timothy Nikkel
c70fc900c3 Bug 638430. Fix finding the display root of a view when a floating view is inside a floating view. r=roc 2011-05-29 22:15:00 -05:00
Timothy Nikkel
64072dc44f Bug 655267. Move the synth mouse move handling from the view manager to the pres shell. r=roc
I also snuck in some minor cleanup.
2011-05-11 10:49:16 -05:00
Zack Weinberg
3929b6bfdd Bug 651017, part 5: mechanical changes.
--HG--
extra : rebase_source : 8bbdf48488736b51d05e734e2e9316c1460cfed5
2011-04-16 18:22:44 -07:00
Zack Weinberg
1628ea1551 Bug 266236 part 9: Move nsBoundingMetrics to its own header and prune inclusions of nsRenderingContext.h.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
rename : gfx/src/nsThebesRenderingContext.h => gfx/src/nsRenderingContext.h
extra : rebase_source : 92660748436f03475e011184e2828f1db0ad63e0
2011-04-07 18:04:40 -07:00
Jan Küchler
c510bc3046 Bug 266236 part 3: Mechanical rename of nsIRenderingContext and nsThebesRenderingContext to nsRenderingContext. Mechanical substitution of nsRefPtr<nsRenderingContext> for nsCOMPtr<nsRenderingContext>.
--HG--
rename : gfx/src/nsThebesRenderingContext.cpp => gfx/src/nsRenderingContext.cpp
extra : rebase_source : 34884bfcafd885feaf73300bc7246cd192062a48
2011-04-07 18:04:40 -07:00
Robert O'Callahan
507be0258e Bug 598854. We no longer have cases where the view to paint is not a displayroot, so remove the code that handles that. r=tnikkel 2011-04-11 08:41:18 -07:00
Ms2ger
4b1168a59f Bug 637864 - Give nsIViewManager::GetRootView a sane signature; r=bz 2011-03-29 22:24:54 -04:00
L. David Baron
28afc65780 Merge layout work from projects/birch, part 4. a=rs 2011-03-24 14:36:14 -07:00
Ehsan Akhgari
3bb129e1e3 Bug 610391 - Create the widget for drop-down comboboxes lazily, and tear it down when the drop-down is closed; r=roc 2011-03-21 14:28:10 -04:00
Timothy Nikkel
13df36f1ff Bug 636817. Make LayerManagerForDocument return the correct manager even when there is no root frame so that empty transactions work correctly. r=roc a=hardblocker 2011-03-01 17:15:23 +01:00
Chris Jones
7155968a31 Bug 593243: Clip invalidations to the displayport when one is set. r=tn 2011-03-11 17:12:11 -06:00
Ehsan Akhgari
70883a0724 Bug 611798 - Do not pretent that we need the presshell to exist in order to turn off update view batching when the editor operations finish, because we don't; r=bzbarsky a=blocking-final+
This patch should fix all of the possible cases where a browser window stops painting when the presshell dies in the middle of an editor operation.
2010-12-10 17:14:26 -05:00
Neil Deakin
045b59fd77 Bug 613748 - Keyboard inputs do not work when tab-modal alerts are open in another tab. r=smaug, a=drivers for API change 2010-11-24 17:44:46 -08:00
Masatoshi Kimura
28f9c1460d Bug 593577 - Get rid of nsContentType. r=roc a=a 2010-09-20 15:40:13 +02:00
Mats Palmgren
bdfed9190d Bug 449734 part 1 - Preserve presentation when dragging a tab between browser windows. r=roc a=blocking2.0:betaN 2010-09-18 13:28:49 +02:00
Timothy Nikkel
447ae6f4c6 Bug 594267. Get rid of hack to determine if a document is visible now that chrome and content view managers are linked. r=roc a=roc 2010-09-11 13:24:50 -05:00
Mats Palmgren
f04c0c661b Backing out bug 449734 due to unexpected orange. a=ted 2010-09-03 18:13:49 +02:00
Mats Palmgren
842363cdb7 Bug 449734 - Preserve presentation when dragging a tab between browser windows. r=roc a=blocking2.0:betaN 2010-09-03 16:22:00 +02:00
Timothy Nikkel
ad69b8103e Bug 587542. Rev IID that was forgotten. 2010-08-21 19:55:55 -05:00
Chris Jones
0a3ef826a6 Bug 582057, part i: Use nsIWidget::CreateChild in nsIView::CreateWidget* (where possible). r=roc a=blocking-fennecb1 2010-08-20 14:29:02 -05:00
Chris Jones
3cc44e2456 Bug 582057, part g: Split nsIView::CreateWidget into CreateWidget, CreateWidgetForParent, and CreateWidgetForPopup in preparation of eliminating IIDs here. sr=roc 2010-08-20 14:29:02 -05:00
Chris Jones
97a0f4958f Bug 582057, part a: Add nsIView::Impl() and nsView::CreateWidget() to get rid of |static_cast<nsView*>(this)|. r=roc 2010-08-20 14:29:01 -05:00
Chris Jones
b3c3ed11d1 Backed out changeset 5452db293694 2010-08-19 19:03:20 -05:00
Chris Jones
a160fb6e84 Bug 582057, part a: Add nsIView::Impl() and nsView::CreateWidget() to get rid of |static_cast<nsView*>(this)|. r=roc 2010-08-19 13:49:35 -05:00
Timothy Nikkel
4ce442895c Bug 587542. If painting is suppressed in the presshell, drop invalidations that come through the view subsystem as well as through the usual frame invalidation path. r=roc 2010-08-18 20:16:58 -05:00
Boris Zbarsky
2c088ca165 Bug 575336 part 1. Make sure to update the size of the current prescontext on style flush, so that media queries do the right thing. r=roc 2010-08-05 14:39:39 -04:00
Timothy Nikkel
ecb1228db4 Bug 563878. Part 12. Change the view observer interface and overhaul painting in view/. r=mats f=roc 2010-07-18 21:23:47 -05:00
Timothy Nikkel
3a7624111e Bug 563878. Part 10. Overhaul generic parts of view/ to handle non-constant zoom view manager hierarchies. r=mats 2010-07-18 21:23:47 -05:00
Robert O'Callahan
00c5b11afa Bug 564991. Part 27: Make plugin geometry changes asynchronous and make them happen as close to the final paint as possible. r=matspal,sr=vlad 2010-07-16 09:08:08 +12:00
Robert O'Callahan
c996ab4fc3 Bug 572900. Part 1: Remove view cruft that's not needed now that scrolling is layer-based. r=tnikkel 2010-07-16 09:08:06 +12:00
Timothy Nikkel
66ff344afd Bug 563878. Part 9. Remove nsIView::GetScreenPosition because it is unused. r=mats 2010-06-25 16:51:17 -05:00
Timothy Nikkel
14a8952bb9 Bug 563878. Part 8. Remove workaround from ViewToWidgetOffset because it is not needed anymore. r=roc 2010-06-25 16:51:17 -05:00
Jim Mathies
8c631afae5 Bug 513162 - Widget additions for recycling top level widgets as content containers. r=dbaron. 2010-06-24 21:01:06 -05:00
Robert O'Callahan
a1ec90a1a8 Bug 556052. Compute mViewToWidgetOffset correctly and fix bugs by adding subpixel translation when painting. r=mats 2010-04-23 12:21:54 +12:00
Robert O'Callahan
4600eb89a8 Bug 546071. Compute view-to-widget offset for plugin views. r=mats
--HG--
extra : rebase_source : 483afc3b0d00f5fd6685f760b6ad358a94a7c9ba
2010-02-24 00:33:41 -08:00
Robert O'Callahan
c8e9db9062 Backed out changeset 78318b260f18 2010-03-05 20:05:33 +13:00
Robert O'Callahan
d4122472d6 Bug 546071. Compute view-to-widget offset for plugin views. r=mats 2010-02-24 00:33:41 -08:00
Robert O'Callahan
ff44c3c9e3 Bug 534425. Part 6: Let nsIWidgets expose a LayerManager to be used to render into the widget, instead of nsPaintEvent::renderingContext which is removed since it's no longer needed. Currently all widgets fall back to a default BasicLayerManager implementation. Also change nsPaintEvent::region to be an nsIntRegion, and get rid of nsPaintEvent::rect since it's redundant. 2010-03-01 21:03:49 +13:00
Timothy Nikkel
895e60343d Bug 545593. Remove nsViewManager::Enable/DisableRefresh. r=roc 2010-02-18 13:23:23 -06:00
Timothy Nikkel
0483c805d9 Backed out changeset 93c7b23284b8 (Bug 545593) for causing Md oth failures on linux. 2010-02-12 16:46:04 -06:00
Timothy Nikkel
4f8c3bd548 Bug 545593. Remove nsViewManager::Enable/DisableRefresh. r=roc
--HG--
extra : rebase_source : 963053b0f3d5712308b53c665dddcedae08a2b21
2010-02-11 18:14:59 -06:00
Timothy Nikkel
6c427678c3 Bug 488771. Stop nsIScrollPositionListener from inheriting from nsISupports. r=roc
--HG--
extra : rebase_source : bb93c56b3347bc8df7fd843f08e2d5dfc4f3071b
2010-01-28 18:03:42 -06:00
Robert O'Callahan
393faec388 Bug 526394. Part 33: Remove nsScrollPortView etc. r=mats 2010-01-12 10:45:20 +13:00
Robert O'Callahan
96a17b8b42 Bug 526394. Part 32: Remove code that only existed so that scrollframes could have views. r=mats 2010-01-12 10:45:19 +13:00
Robert O'Callahan
0de717dfb6 Bug 526394. Part 31: Move scroll implementation into nsGfxScrollFrame. r=mats 2009-10-08 16:01:15 +13:00
Robert O'Callahan
7cd6b9032a Bug 526394. Part 21: Remove nsIViewManager RootScrollableView APIs, and move GetRectVisibility to nsIPresShell. r=mats 2009-09-09 17:40:02 +12:00
Robert O'Callahan
f5f950e7b8 Bug 526394. Part 19: Remove view paramters from nsIScrollPositionListener. r=mats 2009-09-09 17:40:01 +12:00
Robert O'Callahan
1da8163981 Bug 510110. Extend MozAfterPaint event to contain list of PaintRequest objects with information about individual invalidations. r=dbaron,sr=jst
--HG--
extra : rebase_source : 0e8b9f424d50c2d9e346f7ff15834202a6c101d1
2009-09-04 16:49:18 +12:00
Neil Deakin
51b0e867e6 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-13 09:13:16 -04:00
Neil Deakin
cef5702d08 Bug 503943, back out mouse capture patch, CLOSED TREE 2009-09-10 12:11:41 -04:00
Neil Deakin
6d007b6255 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-10 08:51:36 -04:00
Robert O'Callahan
b8e126f83c Bug 507334, part 2: Blit multiple rectangles when scrolling rather than blitting only the largest single rectangle, and avoid repainting opaque content that covers the scrolling content. r=dbaron 2009-08-13 19:09:51 -07:00
Robert O'Callahan
cc3fc234ee Bug 506615. XUL decks should not have wididgets. r=dbaron 2009-07-30 14:54:42 +12:00
Robert O'Callahan
daf90a54e9 Bug 505693. Remove nsIView::DisownWidget. r=bzbarsky
--HG--
extra : rebase_source : 28e8dbe51cafae7454f1e847ca87597adaa28b9f
2009-07-27 09:30:22 +12:00
Robert O'Callahan
933f110f1a Bug 352093. Part 15: Rework scrolling so that we don't need a dedicated native widget for scrollframes. r=dbaron,joshmoz,karlt,jmathies 2009-07-22 12:45:13 +12:00
Robert O'Callahan
6991cf6438 Bug 352093. Part 13: Remove nsIViewManager::GetWidget since no-one should be using it. r=bzbarsky 2009-07-22 12:45:11 +12:00
Robert O'Callahan
42155761e9 Bug 352093. Part 2: Create nsIViewManager::GetRootWidget. 2009-07-22 12:45:03 +12:00
Robert O'Callahan
dce2b0d98a Bug 339548. Part 9: Create nsRootPresContext::UpdatePluginGeometry, and use it. Make nsObjectFrame manage its widget directly. 2009-07-22 12:45:00 +12:00
Robert O'Callahan
3da1f8631b Bug 352093. Part 1: Add view parameter to nsViewManager::DispatchEvent so we can target view system events to widget-less documents. r=bzbarsky 2009-07-22 12:44:59 +12:00
Robert O'Callahan
792e8d400b Bug 500629. Remove NS_SCROLL_PROPERTY_ALWAYS_BLIT, only XUL listboxes use it, and for no good reason. r+sr=bzbarsky
--HG--
extra : rebase_source : 262ff065fd9bbc7687a5aa1f9c330626878cdf25
2009-06-29 10:48:59 +12:00
Markus Stange
f64a903399 Bug 495920 - nsThebesDeviceContext shouldn't have a reference to a native widget. r=masayuki, sr=roc 2009-06-11 11:24:41 +02:00
Jim Mathies
b7f1e1335d Bug 485101 - Implement panning feedback for touch enabled displays with win7. r+sr=smaug r=blassey. 2009-05-19 21:05:59 -05:00
Jeremy D. Lea
0e51628bd3 Bug 431634 - Part 1 - clean up header pollution; r+sr=roc 2009-04-01 13:59:02 -08:00
Zack Weinberg
4b0289ba0b Bug 478079 - Kill nsViewManager::DefaultRefresh, and move the cached canvas background to the pres shell; r+sr=roc 2009-02-23 02:10:23 +01:00
Jeremy Lea
ce80f69254 Bug 448830. Make nsIntRect/nsIntMargin/nsIntSize/nsIntPoint different types from nsRect/nsMargin/nsSize/nsPoint different types for better compile-type unit checking. r+sr=roc
--HG--
extra : rebase_source : a331a9e49fbc5931f546919281fcca7f008ab615
2009-01-15 16:27:09 +13:00
L. David Baron
c56c851ea5 Make the code to suppress infinite synthesized mouse move loops work again with asynchronous style changes. (Bug 302561) r+sr=bzbarsky,roc 2008-12-07 13:58:07 -08:00
L. David Baron
e6e2f9494e Backed out changeset 7b553bbed53d (bug 302561) due to chrome test crash. 2008-12-04 09:57:18 -08:00
L. David Baron
971d17c3fd Make the code to suppress infinite synthesized mouse move loops work again with asynchronous style changes. (Bug 302561) r+sr=bzbarsky,roc 2008-12-04 08:09:52 -08:00
Markus Stange
72aca2a4c9 Bug 457864 - Make wheel scrolling asynchronous, r+sr=roc (relanding) 2008-11-01 15:07:34 +01:00
Keith Schwarz
48a87265ac Bug 435293. Implement CSS transforms. r=dbaron,r+sr=roc 2008-09-13 21:42:11 +12:00
L. David Baron
8b1fb3a9e2 Flush view manager's delayed resize when flushing layout. (Bug 453896) r+sr=bzbarsky 2008-09-09 06:43:10 -07:00
Robert O'Callahan
c04d96c610 Bug 376662. Convert nsIFrame::GetOffsetTo to not use views. We need to ensure that for popups and scrollframes, views and frames are kept in sync at *all* times. Also fixes bugs in tests for NS_FRAME_NO_MOVE_FRAME. r+sr=bzbarsky 2008-09-06 20:52:56 +12:00
Robert O'Callahan
8d8390a5b5 Backing out changeset 1bdd5da49865 (for bug 376662) due to regression bug 453661 2008-09-05 15:40:06 +12:00
Robert O'Callahan
82aa805186 Bug 376662. Make nsIFrame::GetOffsetTo not explicitly use views. r+sr=bzbarsky 2008-09-04 09:35:52 +12:00
Benjamin Smedberg
556cf36dc9 Bug 442729 - Annotate stack-only classes in layout, r+sr=roc 2008-07-01 15:16:45 -04:00
Olli.Pettay@helsinki.fi
060a5a3d0c Bug 421209, r=cpearce, sr=jst, a=beltzner 2008-03-20 13:24:36 -07:00
roc+@cs.cmu.edu
73197c8a63 Bug 417967. Align subframe drawing so that drawing at (0,0) relative to the root view's origin is aligned to a pixel boundary. r+sr=bzbarsky 2008-02-24 17:39:34 -08:00
roc+@cs.cmu.edu
518856f1c7 Bug 399852. Experimental relanding to collect data from centos5. 2008-02-19 01:16:20 -08:00
roc+@cs.cmu.edu
4a6b816dec Backing out bug 399852 again, looks like it caused more focus-related mochitest failures 2008-02-11 19:04:48 -08:00
roc+@cs.cmu.edu
35dc50961d Bug 399852. Suppress focus changes during content updates, reboot focus after the update has finished. patch by Chris Pearce, r+sr=roc 2008-02-11 17:57:18 -08:00
roc+@cs.cmu.edu
019ef8a41f Fixing bustage 2008-01-26 16:10:21 -08:00
roc+@cs.cmu.edu
a93abc37c9 Bug 413292. Make Begin/EndUpdateViewBatch be sure to remove the batch-count from the same viewmanager we added one to. r+sr=bzbarsky 2008-01-26 15:59:50 -08:00
dholbert@cs.stanford.edu
e66b5b8b2a Backing out 399852 due to mac mochitest failures 2008-01-15 16:56:43 -08:00
dholbert@cs.stanford.edu
02315d843d Bug 399852 - Crash [@ nsCSSFrameConstructor::FindFrameWithContent] with position: fixed, focusing and contenteditable, patch by Chris Pearce <chris@pearce.org.nz>, r+sr=roc, a=blocking1.9+ (re-landing; mochitest failures should be fixed) 2008-01-15 16:19:47 -08:00
roc+@cs.cmu.edu
71377762e9 Backing out 410489 to fix test failures 2008-01-09 16:40:07 -08:00
martijn.martijn@gmail.com
334bf6c7b6 Bug 399852 - Crash [@ nsCSSFrameConstructor::FindFrameWithContent] with position: fixed, focusing and contenteditable, patch by Chris Pearce, r+sr=roc, a=blocking1.9+ 2008-01-09 13:44:59 -08:00
enndeakin@sympatico.ca
8ccc15cac7 Bug 395334, allow noautohide panels to have a parent so they that float and move with their parent, also fixes bug 395123, r=josh,roc,sr=roc 2007-11-28 12:18:11 -08:00