Commit Graph

152 Commits

Author SHA1 Message Date
Oleg Romashin
779504f014 Bug 528025. Hold a strong ref from the view manager to the device context. r=roc/bz 2009-11-18 13:38:16 +13:00
Robert O'Callahan
df12cdae81 Bug 498340. Backout previous fix 2009-11-16 11:48:18 +13:00
Oleg Romashin
e1e235be47 Bug 528025 - Invalid read happen in view because of Device context is not referred properly. r=roc 2009-11-15 10:02:10 +02:00
Markus Stange
89681f9fd4 Bug 517804 - Flush reflows and invalidations during viewWillDraw. r=roc, r=josh
--HG--
extra : rebase_source : cb6f250b0fc137682cd09e569d34c29ca272211e
2009-11-14 00:03:46 +01:00
Karl Tomlinson
f1bba3e294 b=521198 don't update when refresh is disabled r=roc
--HG--
extra : rebase_source : 8277aa725ef29138201d825b31aad6bec258a53d
2009-11-11 09:47:57 +13:00
Robert O'Callahan
d95452e244 Bug 498340. Block script execution during the entire paint phase including when we call WillPaint to flush notifications. We don't want script to run and disturb (directly or indirectly) the widget hierarchy, because doing that during BeginPaint/EndPaint can confuse Windows. Other platforms might also be adversely affected. r=bz 2009-11-10 14:00:35 +13:00
Robert O'Callahan
7e04a64cff Bug 513082. Take advantage of our knowledge that nsDisplayClip, when used in a blitting scrolling frame, must snap to device pixels, to get more accurate blit regions. r=dbaron 2009-11-04 07:39:42 +13:00
Mats Palmgren
f93c58bc21 Call WillPaint() on all descendant view observers. b=517772 r=bzbarsky r=roc 2009-10-16 12:55:19 +02:00
Robert O'Callahan
0661a95762 Bug 508495. Let CSS borders and padding apply to plugin elements, and fix layout, painting and event handling to work with them. r=dbaron
--HG--
extra : rebase_source : c42240c5a88dc05579b658f8cc29ff289422986b
2009-09-11 13:44:20 +12:00
Markus Stange
f16e17827d Backed out changeset 7799cfb99362 (Bug 517804 - Flush reflows and invalidations during viewWillDraw) because it caused a ts_shutdown regression. 2009-09-23 08:53:25 +12:00
Markus Stange
af80e1bef8 Bug 517804 - Flush reflows and invalidations during viewWillDraw. r=roc, r=josh 2009-09-21 18:29:59 +12:00
Robert O'Callahan
6de615de1b 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
02a7469b05 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
a5bfe49767 Bug 503943, back out mouse capture patch, CLOSED TREE 2009-09-10 12:11:41 -04:00
Neil Deakin
2ca788ce33 Bug 503943, add mouse capturing api to elements, remove capturing from views, r=roc,sr=smaug 2009-09-10 08:51:36 -04:00
Taras Glek
8943704095 Bug 457949 - no need for Stopwatch r=bsmedberg
--HG--
extra : rebase_source : 5cd3baecf54295012b28d42fc7bf4c9b34e12714
2009-08-28 11:03:51 -07:00
Brad Lassey
4df98998a7 bug 511716 - trailing while panning fennec r=stuart 2009-08-20 16:46:16 -04:00
Robert O'Callahan
9f2ae1a715 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
Masayuki Nakano
f9802cc670 Bug 128647 [RFE] Handler for WM_COPY/WM_CUT/WM_PASTE/WM_CLEAR r=ere+roc, sr=roc 2009-08-08 00:11:17 +09:00
Robert O'Callahan
a4fec52cd4 Bug 506615. XUL decks should not have wididgets. r=dbaron 2009-07-30 14:54:42 +12:00
Robert O'Callahan
c95fd3cf9a Bug 505912. Trust the widget visibility in UpdateWidgetArea. r=dbaron
--HG--
extra : rebase_source : 4c6e1b2366b430763cce546ab0e26576705a0ca3
2009-07-27 09:17:43 +12:00
Robert O'Callahan
5fa812e479 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
20c4a2900f 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
934fc5b108 Bug 352093. Part 11: Remove GetWidget cals from the view maanger. r=bzbarsky 2009-07-22 12:45:09 +12:00
Robert O'Callahan
d6fc5e3bfb Bug 352093. Part 2: Create nsIViewManager::GetRootWidget. 2009-07-22 12:45:03 +12:00
Robert O'Callahan
eaf4ee2bc9 Bug 339548. Part 10: Simplify widget parameters to UpdateWidgetArea. 2009-07-22 12:45:01 +12:00
Robert O'Callahan
41b0dc9d84 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
b4be2a9744 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
81bc0a54db Bug 339548. Part 4: Move responsibility for removing child widget areas from the paint region from nsViewManager to platform widget code. r=karl,josh 2009-07-22 12:44:55 +12:00
Robert O'Callahan
3c281129eb Bug 339548. Part 3: Introduce native widget clip region API. 2009-07-22 12:44:55 +12:00
Timothy Nikkel
b21de22a53 Bug 488242. Make iframes with semi-transparent backgrounds work correctly by painting all canvas background colors using a dedicated fallback background color display item. r+sr=roc 2009-07-04 21:30:59 +12:00
Neil Deakin
79321ef1f8 Bug 178324, refactor focus by moving all focus handling into one place and simplifying it, add many tests, fixes many other bugs too numerous to mention in this small checkin comment, r=josh,smichaud,ere,dbaron,marco,neil,gavin,smaug,sr=smaug (CLOSED TREE) 2009-06-10 14:00:39 -04:00
Ryo Onodera
5e72993bff Bug 489485. nsRect::ToNearest/Inner/OuterPixels should be nonstatic. r+sr=roc
--HG--
extra : rebase_source : 13778709270ab926e951a7782fce3632370ef7c7
2009-05-08 14:31:04 +12:00
tn
8abb6cc458 Bug 485275. nsViewManger::RenderViews needs to forward to the correct view manager for the display root view. r=roc 2009-04-06 12:39:24 +12:00
XiaoXiaoHU
692da049fc Bug 298889 - iframe invisible when window is transparent; r+sr=roc 2009-02-24 17:53:32 +01:00
Zack Weinberg
558a5863e2 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
Jim Chen
6513b5e77c Bug 88831 Support new IME API "Text Services Framework" from Office XP and Windows XP (relanding)
--HG--
rename : content/events/src/nsQueryContentEventHandler.cpp => content/events/src/nsContentEventHandler.cpp
rename : content/events/src/nsQueryContentEventHandler.h => content/events/src/nsContentEventHandler.h
2009-02-11 05:56:51 +09:00
Masayuki Nakano
4755de05c7 Backing out the TSF patch of bug 88831. This might cause a timeout failure on test_keycodes.xul
--HG--
rename : content/events/src/nsContentEventHandler.cpp => content/events/src/nsQueryContentEventHandler.cpp
rename : content/events/src/nsContentEventHandler.h => content/events/src/nsQueryContentEventHandler.h
2009-02-11 03:02:05 +09:00
Jim Chen
41a1a807d6 Bug 88831 Support new IME API "Text Services Framework" from Office XP and Windows XP r=masayuki+peterv, sr=roc
--HG--
rename : content/events/src/nsQueryContentEventHandler.cpp => content/events/src/nsContentEventHandler.cpp
rename : content/events/src/nsQueryContentEventHandler.h => content/events/src/nsContentEventHandler.h
2009-02-10 20:15:36 +09:00
L. David Baron
ef5fe05834 Revert changeset fc8d54ab29a6 (Bug 88831, Support new IME API "Text Services Framework" from Office XP and Windows XP) due to failure (every time) of the new unit test it added (Test WinTSF) on the Windows tinderbox.
--HG--
rename : content/events/src/nsContentEventHandler.cpp => content/events/src/nsQueryContentEventHandler.cpp
rename : content/events/src/nsContentEventHandler.h => content/events/src/nsQueryContentEventHandler.h
2009-02-07 09:13:30 -08:00
Jim Chen
e53087b660 Bug 88831 Support new IME API "Text Services Framework" from Office XP and Windows XP r=masayuki+peterv, sr=roc
--HG--
rename : content/events/src/nsQueryContentEventHandler.cpp => content/events/src/nsContentEventHandler.cpp
rename : content/events/src/nsQueryContentEventHandler.h => content/events/src/nsContentEventHandler.h
2009-02-07 18:52:59 +09:00
Zack Weinberg
60807b61c4 Bug 475548. Don't let the view manager's DefaultBackgroundColor be translucent. r+sr=roc
--HG--
extra : rebase_source : 1a8a5b29e8bc726affd4a97850e4c8f2c962ed1f
2009-01-30 20:07:30 +13:00
Jeremy Lea
1800930122 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
Masayuki Nakano
229283883c Bug 272847 Text input via IME does not work in windowless Flash movie r=ere+josh, sr=roc 2008-12-15 12:54:54 +09:00
Robert O'Callahan
fc367b4931 Bug 468753 - Startup crash in nsViewManager::ProcessSynthMouseMoveEvent; r+sr=dbaron 2008-12-10 15:57:27 +01:00
Mats Palmgren
1dc0d756d8 Don't crash if views were destroyed while flushing notifications. b=421839 r+sr=roc 2008-12-08 00:11:37 +01:00
L. David Baron
7fc92bad7f 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
90b976fe34 Backed out changeset 7b553bbed53d (bug 302561) due to chrome test crash. 2008-12-04 09:57:18 -08:00
L. David Baron
85dd73ebd3 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
Robert O'Callahan
3f3b6013d1 Bug 454959. When a document is in a floating view, floating-ness doesn't propagate across view manager boundaries. So use the display-root view as the place to invalidate from. r+sr=bzbarsky 2008-11-26 11:09:37 +13:00
Honza Bambas
7f2567b670 Bug 455871 - [mac] Regression: drag & drop is not working at all after some-time of browser usage; fix, v2 + colorpicker test update; r+sr=roc 2008-10-28 05:44:29 +01:00
Keith Schwarz
dc907e1ec7 Bug 435293. Implement CSS transforms. r=dbaron,r+sr=roc 2008-09-13 21:42:11 +12:00
L. David Baron
fa9533f8cf Flush view manager's delayed resize when flushing layout. (Bug 453896) r+sr=bzbarsky 2008-09-09 06:43:10 -07:00
Vladimir Vukicevic
7ad7d725ef b=451441; EnableRefresh with IMMEDIATE needs to always call Composite(); r+sr=roc 2008-09-07 23:04:15 -07:00
Robert O'Callahan
b934dd7421 Bug 442291. Avoid the bitblit scrolling path completely if the area to be repainted is more than half the area to scroll. The goal is to avoid the synchronous repaint required by bitblitting (synchronicity is required to minimize the delay between blitting and repainting --- the intermediate display is very ugly). Also, make scroll-induced full-view repainting DEFERRED, so that it's less urgent and more apt to coalesce, so we drop frames more easily when painting can't keep up during scrolling. r+sr=bz 2008-09-06 20:42:47 +12:00
Rob Arnold
f6bda8fda0 Implement Aero Glass effect support - bug 418454 r=vlad r=roc 2008-08-12 17:44:14 -07:00
Masayuki Nakano
446176f140 Bug 449012 – Remove legacy Reconversion/QueryCaretRect Events r=ere+roc, sr=roc 2008-08-09 11:46:30 +09:00
Karl Tomlinson
254510d392 Adjust the dirty region consistently with the coordinate transformation. b=445932 r+sr=roc 2008-07-21 20:24:38 +12:00
roc+@cs.cmu.edu
ac603dd754 Bug 429315. Relanding. Don't reparent widgets that are supposed to be toplevel. r+sr=bzbarsky,a=beltzner 2008-04-18 02:49:36 -07:00
roc+@cs.cmu.edu
d58fcaf829 Backout 429315 2008-04-17 04:53:55 -07:00
roc+@cs.cmu.edu
f3ae18b328 Bug 429315. Don't reparent toplevel widgets when we reparent a view subtree; they should remain toplevel. r+sr=bzbarsky,a=beltzner 2008-04-17 01:17:06 -07:00
roc+@cs.cmu.edu
af6e2919b9 Bug 408955. UpdateViewAfterScroll shouldn't just bail out for content in popups. Instead we should do the invalidation but limit it to the correct displayRoot. r+sr=bzbarsky 2008-04-01 15:15:43 -07:00
Olli.Pettay@helsinki.fi
6d32891dbb Bug 421209, r=cpearce, sr=jst, a=beltzner 2008-03-20 13:24:36 -07:00
jonas@sicking.cc
da4cab3b75 Bug 401155: Make it safe to create a wrapper for an object at any time by making sure wrapping doesn't write script. Also set up a service that tries to keep track of when it's safe to execute script. r=bz sr=jst 2008-03-14 16:08:57 -07:00
jonas@sicking.cc
47a2cff0da Back out due to failed mochitest 2008-03-10 19:18:15 -07:00
jonas@sicking.cc
4b8f2cdf7a Bug 401155: Make sure plugins and XBL constructors not execute when creating a script wrapper if it's not safe to execute scripts. r=bz sr=jst. 2008-03-10 17:49:19 -07:00
roc+@cs.cmu.edu
8e5d82e2be Bug 408913. Do a proper fix for pixel-aligned drawing of IFRAME contents. The secret is make ViewToWidgetOffset return correct results for the root views of subdocuments. r+sr=bzbarsky 2008-03-03 23:48:52 -08:00
mozilla@weilbacher.org
298971b41d Bug 419270: Elements with position:fixed jump while scrolling, copy the Linux solution, p=wuno@lsvw, r=me, a19a4=beltzner 2008-02-29 00:19:05 -08:00
roc+@cs.cmu.edu
705c2058b7 Bug 416168. Ensure that the overflow rect for a frame always includes (0,0) even if the frame rect is empty. Also ensures that if the frame rect is empty but has non-zero dimension on one axis, the overflow rect includes that size. A scrolled view for such a frame also includes that size to ensure width:0,height:Npx and width:Npx,height:0 frames are scrollable by that amount. r+sr=dbaron 2008-02-27 01:46:22 -08:00
roc+@cs.cmu.edu
ee0b9041fc 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
masayuki@d-toybox.com
5f50f3f99e Bug 348341 "Reverse conversion" doesn't work by Kotoeri(Japanese input). r=josh+peterv+roc, sr=roc, b1.9=pavlov 2008-02-19 23:40:04 -08:00
roc+@cs.cmu.edu
0c31b94f4f Bug 399852. #ifdef out logging code, since this checkin is going to stick 2008-02-19 03:08:57 -08:00
roc+@cs.cmu.edu
e491c305ca Bug 399852. Experimental relanding to collect data from centos5. 2008-02-19 01:16:20 -08:00
roc+@cs.cmu.edu
fceb9e258f 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
381865831c 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
04ea5b16d9 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
reed@reedloden.com
2b3ef8b034 Bug 323740 - "Crash [@ nsViewManager::UpdateWidgetsForView]" [p=hskupin@gmail.com (Henrik Skupin) r+sr=roc a1.9=schrep] 2008-01-18 01:10:37 -08:00
dholbert@cs.stanford.edu
75e67e1e4d Backing out 399852 due to mac mochitest failures 2008-01-15 16:56:43 -08:00
dholbert@cs.stanford.edu
88e7613094 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
263df290c0 Backing out 410489 to fix test failures 2008-01-09 16:40:07 -08:00
martijn.martijn@gmail.com
127e57e6ce 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
reed@reedloden.com
1d602b3c42 Bug 105708 - "move nsUnitConversion.h" [p=reg@openpave.org (Jeremy Lea) r+sr+a1.9=roc] 2008-01-01 02:11:02 -08:00
hwaara@gmail.com
9fc1c6a41c bug 307204, implement support for transparent windows in XUL for Mac OS X. r=josh, sr=roc, approval1.9=damons 2007-12-19 11:40:18 -08:00
vladimir@pobox.com
1f7f3e59ed b=406458; code cleanup: add new ThebesContext() call as opposed to NATIVE_THEBES_CONTEXT hackery, r=stuart 2007-12-18 15:01:15 -08:00
roc+@cs.cmu.edu
a69e97ef2b Bug 400208. Don't leak mScrollCnt when we take an early exit from UpdateViewAfterScroll. r+sr=bzbarsky,a=beltzner 2007-10-24 14:44:37 -07:00
bzbarsky@mit.edu
295ac223f1 Make sure to process style updates before reflow, and both before painting. Bug 375436, r+sr=roc, a=dbaron 2007-08-21 19:57:06 -07:00
jwalden@mit.edu
e3c4baccae Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros. 2007-07-08 00:08:04 -07:00
sharparrow1@yahoo.com
49e1ece70f Bug 385222: Topmost overlapping div does not scroll within the bounded area of the underlying div. r+sr=roc. 2007-07-02 13:56:30 -07:00
sharparrow1@yahoo.com
a3ab1ea4f7 Bug 382756: ASSERTION: When exactly is this supposed to be non-zero?. r+sr=roc. 2007-06-29 18:41:10 -07:00
sharparrow1@yahoo.com
a539c5d307 Remove assertion accidentally checked in. 2007-06-27 23:05:44 -07:00
sharparrow1@yahoo.com
1c74f14381 Bug 382595: SVG image is covered with horizonal lines when scrolled. r+sr=roc. 2007-06-27 23:02:05 -07:00
sharparrow1@yahoo.com
56766201d9 Bug 385978: View cleanup. r+sr=roc 2007-06-27 14:23:02 -07:00
roc+@cs.cmu.edu
7167152db2 Bug 343430. Reduce the area we scroll on Windows to reduce flicker by excluding areas that shouldn't be moving. On Linux, since we can't control the area we scroll, just disable accelerated scrolling in that case and repaint everything. r+sr=dbaron 2007-05-27 20:17:20 -07:00
sharparrow1@yahoo.com
eabb991fe2 Relanding bug 380438: Black lines appearing on the Opera Desktop Team Blog comments. r+sr=roc. 2007-05-22 20:45:59 -07:00
sharparrow1@yahoo.com
d4f1c91766 Backing out due to red tree. 2007-05-22 18:57:41 -07:00
sharparrow1@yahoo.com
795d602599 Bug 380438: Black lines appearing on the Opera Desktop Team Blog comments. r+sr=roc 2007-05-22 18:42:36 -07:00
dbaron@dbaron.org
d4ac9c2be8 Remove unused variable/parameter in view code. b=371392 r+sr=roc 2007-05-17 23:02:00 -07:00
sharparrow1@yahoo.com
7b9d18d3fe Bug 378662: Get rid of PresShellViewEventListener. r+sr=roc 2007-05-04 16:28:00 -07:00
mats.palmgren@bredband.net
a8c8911056 Lookup the view again since WillPaint() might lead to its destruction. b=378273 r+sr=roc 2007-04-29 17:46:27 -07:00
aaronleventhal@moonset.net
37ed4929a1 Bug 348621. Contents of <iframe> not firing valid accessibility events. r+sr=roc 2007-04-18 06:44:28 -07:00