Mike Hommey
89d7e38ce7
Bug 702764 part 2 - Make nsAppStartup::GetStartupInfo more flexible. r=tglek
2011-11-18 08:54:27 +01:00
Timothy Nikkel
7e7413964d
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
Neil Deakin
ead3336a32
Bug 503879, remove nsIToolkit, make nsToolkit a singleton, remove it from some widget platforms, and don't pass it around when creating widgets, original patch by robarnold, r=roc
2011-10-25 11:05:32 -04:00
Timothy Nikkel
43422fc546
Bug 695245. Misc view related code cleanup. Mostly dead code removal. r=roc
2011-10-19 14:10:13 -05:00
Ehsan Akhgari
1deb9f1504
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
Neil Deakin
2a37cb4a1f
Bug 694224, remove appshell argument from various widget creation methods, r=roc
2011-10-14 09:06:39 -04:00
Michael Wu
ac54b41b01
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
Brad Lassey
0f23c3bdf5
bug 688618 - trailing while panning in fennec, be consistant on all platforms r=roc
2011-09-23 13:21:04 -04:00
Ehsan Akhgari
10fb1dbda5
Bug 666414 - Prevent AddRef and Release from being called on the pointers wrapped in nsCOMPtr and nsRefPtr; r=bsmedberg
2011-09-16 16:22:44 -04:00
L. David Baron
589a646031
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
Rafael Ávila de Espíndola
c20c7473d6
Bug 678222 - Fix build with clang and c++0x; r=roc
...
Change AppUnitsPerDevPixel to return a PRUint32. It should never return
negative values and it is used in initializer lists that expect unsigned
values, which is not valid c++0x.
I have also change the member variables to be unsigned and converted
a sentinel value to use 0 instead of -1. UINT32_MAX should work fine too
if you like it better.
2011-08-11 19:19:03 -04:00
Marco Castelluccio
eeef2b0334
Bug 635643. Remove nsIRegion, because it is a useless wrapper class. r=tnikkel
2011-07-25 17:19:37 -05:00
Mats Palmgren
4c14ca1f92
Bug 424395 - Ignore invalidation if the view observer has been disconnected. r=roc
2011-07-20 22:22:27 +02:00
Masayuki Nakano
7627ca4917
Bug 664906 Remove unnecessary #include for prefs in view r=roc
2011-06-17 18:59:58 +09:00
Ed Morley
13cfc322c6
Bug 659621 - Remove EXTRA_DSO_LIBS, EXTRA_DSO_LDOPTS, OS_LIBS from makefiles containing LIBXUL_LIBRARY = 1, now that libxul is always built; r=ted
2011-06-12 03:49:00 -04:00
Timothy Nikkel
b4da3202f5
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
34c78fa4b6
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
Masayuki Nakano
7ded25c607
Bug 651694 Sort out NS_PLUGIN_EVENT r=roc
2011-05-11 13:52:44 +09:00
Timothy Nikkel
bb161b946b
Bug 653839. Don't call DidPaint on hidden documents. This just does for DidPaint what bug 594267 did for WillPaint. r=roc
2011-05-01 20:59:15 +02:00
Zack Weinberg
65920bff77
Bug 651017, part 5: mechanical changes.
...
--HG--
extra : rebase_source : 8bbdf48488736b51d05e734e2e9316c1460cfed5
2011-04-16 18:22:44 -07:00
Zack Weinberg
f8bc216403
Bug 651017, part 1: minimize inclusion of ns*DeviceContext.h; move the printing error codes to nsIDeviceContextSpec.h; os2 small widget cleanup.
...
--HG--
extra : rebase_source : 5b7cebe68f71a760463e3522b159c7cde8a72f5e
2011-04-16 18:22:41 -07:00
Robert O'Callahan
10ed771425
Bug 641426. Part 5: Avoid operator== where possible to distinguish between 'equal edges' and 'equal areas' for rectangles. r=dbaron,sr=cjones
2011-04-19 15:07:23 +12:00
Zack Weinberg
2c36a76906
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
23271beb1d
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
2b28519cc4
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
Ehsan Akhgari
a840ac73bd
Bug 646071 - Part 3: Remove nsInt64.h, and convert all uses of nsInt64 and nsUint64 in the tree to PRInt64 and PRUint64, respectively; r=bsmedberg
2011-03-31 20:15:27 -04:00
Ehsan Akhgari
e88f3df029
Backout the latest cedar merge wholesale until I test the correctness of the merge locally. This commit takes the tree state back to changeset 8d3f6093c425 (the last known good changeset before the merge)
2011-04-01 12:23:48 -04:00
Ehsan Akhgari
8be93d2df6
Bug 646071 - Part 3: Remove nsInt64.h, and convert all uses of nsInt64 and nsUint64 in the tree to PRInt64 and PRUint64, respectively; r=bsmedberg
2011-03-31 20:15:27 -04:00
Ms2ger
6b550061de
Bug 637864 - Give nsIViewManager::GetRootView a sane signature; r=bz
2011-03-29 22:24:54 -04:00
Neil Deakin
e1bbef7c4e
Bug 632953 - Clear mouse capture after window resize completes. r=jimm
2011-03-25 18:17:35 -05:00
L. David Baron
315dc5ae13
Merge layout work from projects/birch, part 4. a=rs
2011-03-24 14:36:14 -07:00
Ehsan Akhgari
6c4406e947
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
3032fda537
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
Mats Palmgren
5923e75afb
Bug 629823 - Use the right view manager for the parent view. r=tnikkel a=roc
2011-02-10 23:38:37 +01:00
Alon Zakai
9fb6e453f0
Bug 610670 - Reuse a single puppet widget. r=bz,cjones a=blocking-fennec
2011-02-09 12:13:18 -08:00
Chris Jones
739a919254
Bug 593243: Clip invalidations to the displayport when one is set. r=tn
2011-03-11 17:12:11 -06:00
Mats Palmgren
445c8f9d4f
Bug 617076 - Large white space under Add-on Manager when switching tabs and panes. r=tnikkel a=blocking2.0:betaN
2011-01-29 01:10:46 +01:00
Markus Stange
9e98281a4a
Backed out changeset 44c42d8b8d08 (bug 562138 part 1) because it caused bug 627824 and bug 628861.
2011-01-27 07:56:22 +01:00
Markus Stange
5c5e76073b
Bug 562138 - Defer widget visibility changes during reflow. r=roc, a=final
2011-01-18 08:23:49 +01:00
Taras Glek
39278aea65
Bug 625478 - Fix first paint timestamp on OSX and Android r=tn a=Mossop
2011-01-13 20:03:42 -08:00
Taras Glek
1347325084
Bug 522375 - built-in startup time measurement r=vlad a=Mossop
2011-01-13 12:18:51 -08:00
Ehsan Akhgari
47f852bccf
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
7f8918d32d
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
L. David Baron
d201ea51f1
Add assertion to detect case that bent caught in record-and-replay on privatebrowsing tests so we can learn what portion of orange (hangs) in those tests it's responsible for, and get stacks pointing to the problem.
2010-10-21 20:37:49 -07:00
Daniel Holbert
6785c7602c
Bug 603731: Remove unused variable from nsViewManager.cpp. r=tn a=joe
2010-10-14 09:12:56 -07:00
Masatoshi Kimura
648a291bbe
Bug 593577 - Get rid of nsContentType. r=roc a=a
2010-09-20 15:40:13 +02:00
Mats Palmgren
8edd6512f5
Bug 449734 part 4 - Add nsIWidget::ReparentNativeWidget() to handle reparenting of top-level widgets. r=roc a=blocking2.0:betaN
2010-09-18 13:28:50 +02:00
Mats Palmgren
4fc5216824
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
Robert O'Callahan
a0baca455b
Bug 596414. Don't subtract plugin areas from within UpdateWidgetArea, except on mac. r=tn a=b
2010-09-17 11:05:51 -07:00
Timothy Nikkel
bf139c28ac
Bug 588403. Part 2. Don't remove the area of popup widgets from the area to update on the parent widget. r=roc a=blocking final+
2010-09-11 13:24:50 -05:00
Timothy Nikkel
35e734adf2
Bug 594267. Don't call WillPaint on hidden documents. r=bzbarsky a=roc
2010-09-11 13:24:50 -05:00
Timothy Nikkel
117b072c71
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
23dda1e20d
Backing out bug 449734 due to unexpected orange. a=ted
2010-09-03 18:13:49 +02:00
Mats Palmgren
1c7d787cf0
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
Chris Jones
29350cab06
Followup to bug 589864: Accidentally dropped needed widget init param. irc-r=tn a=bustage-fix
2010-08-24 02:48:46 -05:00
Chris Jones
3413ce62c1
Bug 589864: Revert nsView behavior unintentionally changed by refactoring. r=roc a=blocking-beta5
2010-08-24 01:28:16 -05:00
Timothy Nikkel
a2f2373aa2
Bug 587542. Rev IID that was forgotten.
2010-08-21 19:55:55 -05:00
Chris Jones
6cf2acef29
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
019b4a5782
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
67a2b8c37c
Bug 582057, part f: Split out window initialization code in preparation for multiple CreateWidget* methods. r=roc
2010-08-20 14:29:01 -05:00
Chris Jones
0b5654cb18
Bug 582057, part e: Simplify the logic for creating popup widgets. r=roc
2010-08-20 14:29:01 -05:00
Chris Jones
2bc233fc75
Bug 582057, part d: Simplify nsView::LoadWidget and return early if it fails. r=roc
2010-08-20 14:29:01 -05:00
Chris Jones
bd34bf0414
Bug 582057, part c: Initialize default widget init data earlier so that it's always available. r=roc
2010-08-20 14:29:01 -05:00
Chris Jones
7548246b53
Bug 582057, part b: Remove nsIDeviceContext::SupportsNativeWidgets because it's not used meaningfully, and will be confusing in content processes. sr=roc
2010-08-20 14:29:01 -05:00
Chris Jones
1eedeb1aa6
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
19ababc4a2
Backed out changeset 5452db293694
2010-08-19 19:03:20 -05:00
Chris Jones
5d2614a1d8
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
2a8500fa19
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
66ce7a9eec
Bug 575336 part 5. Stop flushing out layout on the whole viewmanager tree when layout is flushed on a document and results in invalidates. r=roc
2010-08-05 14:39:39 -04:00
Boris Zbarsky
995002db76
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
L. David Baron
b2e63de23c
Switch reftest manifests to new, shorter syntax for widget toolkit tests. (Bug 570329) a2.0=tests
...
This patch was created by running the following sed commands:
s/MOZ_WIDGET_TOOLKIT=="\(gtk2\|cocoa\|qt\|windows\)"/\1Widget/g
s/MOZ_WIDGET_TOOLKIT!="\(gtk2\|cocoa\|qt\|windows\)"/!\1Widget/g
on all *.list files in the tree.
2010-07-30 16:48:57 -07:00
Neil Deakin
1a63a382d2
Bug 552982, Part 9, support close buttons on popups with titlebars, r=neil
2010-07-27 09:38:04 -04:00
Neil Deakin
a06cb0fef5
Bug 552982, Part 2: update the popup when it is moved or resized natively, r=mats
2010-07-27 09:38:02 -04:00
Robert O'Callahan
87ddd52922
Bug 576332. Don't dispatch synthetic mouse move events if our root view has no widget. r=dbaron
2010-07-20 13:29:30 +12:00
Timothy Nikkel
afd4c534db
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
b3aff69b2d
Bug 563878. Part 11. Rework the synth mouse move code. r=mats
2010-07-18 21:23:47 -05:00
Timothy Nikkel
a1c1ee7f41
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
5a98cafc7f
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
b1982cf245
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
85899c21fe
Bug 563878. Part 6. Simplify nsViewManager::ViewToWidget. r=mats
2010-07-02 14:11:04 -05:00
Timothy Nikkel
7917138b7d
Bug 563878. Part 9. Remove nsIView::GetScreenPosition because it is unused. r=mats
2010-06-25 16:51:17 -05:00
Timothy Nikkel
d1a7d41431
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
b8f868a6ae
Bug 513162 - Widget additions for recycling top level widgets as content containers. r=dbaron.
2010-06-24 21:01:06 -05:00
Timothy Nikkel
6b11eae45c
Bug 563878. Part 4. Add AppUnitsPerDevPixel convenience function to viewmanager. r=mats
...
(transplanted from fdb1e4bc853db53142b244ddf6e20e9bbab8e636)
--HG--
extra : transplant_source : %FD%B1%E4%BC%85%3D%B51B%B2D%DD%F6%E2%0E%9B%BA%B8%E66
2010-06-05 15:29:49 -05:00
Timothy Nikkel
2038e40741
Bug 563878. Part 3. Fix FindViewContaining. r=mats
...
(transplanted from 83d0cd161be2d3cad1e97a1deebab5f248f4bc7d)
--HG--
extra : transplant_source : %83%D0%CD%16%1B%E2%D3%CA%D1%E9z%1D%EE%BA%B5%F2H%F4%BC%7D
2010-06-05 15:29:49 -05:00
Timothy Nikkel
aeb378926e
Bug 563878. Part 2. Some view/ cleanup. r=mats
...
(transplanted from 5702bf7ea7eb85e1dbbd23a74f6e747e3b26edcd)
--HG--
extra : transplant_source : W%02%BF%7E%A7%EB%85%E1%DB%BD%23%A7Ont%7E%3B%26%ED%CD
2010-06-05 15:29:49 -05:00
Ehsan Akhgari
ffac0ea405
Bug 569436 - Intermittent failure in reftest/tests/view/crashtests/382756-1.xul | assertion count 0 is less than expected 2 assertions; r=dbaron
2010-06-02 14:33:47 -04:00
Jesse Ruderman
e33981d4d7
Annotate ignorage of 'ASSERTION: GetMinimumWidgetSize was ignored' with mention of bug 540078. Also, allow 0 assertions for 387745-1.svg, which was orange in the last cycle due to not triggering the assertion.
2010-05-29 23:06:08 -07:00
Michael Kohler
c00ff9684a
Bug 506041 Part 2: Correct misspellings in source code
...
r=timeless
2010-05-13 14:19:50 +02:00
L. David Baron
e00d9fd996
Annotate remainder of crashtest mainfests (all but one test) with the tests that are known to assert. (Bug 472557)
2010-05-06 09:28:01 -07:00
timeless@mozdev.org
5bd07ca329
Bug 555704 - useless null check of baseView in nsViewManager::DispatchEvent, r=roc
...
--HG--
extra : rebase_source : 5b83d0cadd4a19b7046081d97def741f16021edc
2010-03-29 06:50:00 -07:00
Robert O'Callahan
c2ef8303da
Bug 556052. Compute mViewToWidgetOffset correctly and fix bugs by adding subpixel translation when painting. r=mats
2010-04-23 12:21:54 +12:00
Josh Aas
9fa9cdcdee
Add support for NPCocoaEventWindowFocusChanged. b=555290 r=roc
2010-04-21 02:21:46 -04:00
Karl Tomlinson
1ffcf9007f
b=544211 preparation for handling synthesized button-up events for ending element pointer capture r=smaug
2010-03-24 16:36:27 +13:00
Robert O'Callahan
fbaab81a72
Bug 549630. mViewToWidgetOffset is being calculated the wrong way around. r=mats
...
--HG--
extra : rebase_source : 917290f7ae51bf57d9b689ffa1b3708245235638
2010-03-10 13:14:17 +13:00
Robert O'Callahan
f4de4efc1a
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
03caa5d3cd
Backed out changeset 78318b260f18
2010-03-05 20:05:33 +13:00
Robert O'Callahan
a11d72959b
Bug 546071. Compute view-to-widget offset for plugin views. r=mats
2010-02-24 00:33:41 -08:00
Robert O'Callahan
31649f159f
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
Jesse Ruderman
5a34f82478
Add crashtests
2010-02-27 13:04:34 -08:00