Commit Graph

342 Commits

Author SHA1 Message Date
Robert O'Callahan
d7f7732507 Bug 841192. Part 15: Move DisplayListClipState clipping methods to AutoSaveRestore and AutoClipMultiple helper classes for safer usage. r=mattwoodrow 2013-04-05 00:36:45 +13:00
Robert O'Callahan
29d310bf8a Bug 841192. Part 14: Convert all usage of nsDisplayClip(RoundedRect) to use DisplayListClipState/DisplayItemClip. r=mattwoodrow
This patch does several things. Sorry.

In BuildDisplayList implementations, instead of wrapping display items in nsDisplayClip, we
push clip state onto the nsDisplayListBuilder and give the display items an
explicit clip when they're created.

In FrameLayerBuilder, we use the explicit clips we find on display items instead of
computing our own.

We remove nsDisplayClip and everything that depends on it.

We remove ExplodeAnonymousChildLists. With nsDisplayClip gone, and
nsDisplayOptionEventGrabber removed in a previous patch, there are no
anonymous child lists.

nsDisplayItem::TryMerge implementations need to make sure they have the same
clip before being merged.

I ripped out the part of PruneDisplayListForExtraPage that adjusts clip rects.
As far as I can tell, it isn't actually necessary.
2013-03-04 22:56:02 +13:00
Ryan VanderMeulen
49d8ee31d0 Backed out changeset 8a6cacf047a1 (bug 833795)to fix bug 856083. 2013-04-05 07:55:25 -04:00
Ms2ger
1c73278683 Revert to changeset 4c45dbd81a32 to fix mochitest-chrome orange. 2013-04-05 09:40:13 +02:00
Anthony Jones
1c34cac70d Backout 8a6cacf047a1 (bug 833795) to fix bug 856083 2013-04-05 18:19:08 +13:00
Anthony Jones
b5b45f64fc Bug 833795 - Use screen relative co-ordinates for gestures; r=drs 2013-03-21 15:08:15 +13:00
Ed Morley
42e8716b41 Backed out changeset cacb9f3ee44d (bug 840693) 2013-03-04 14:37:43 +00:00
Anthony Jones
1ebb331c24 Bug 840693 - Change to using gfx:: types in AsyncPanZoomController; r=cjones 2013-03-04 13:25:26 +13:00
Kartikaya Gupta
b38b1ec315 Bug 840721 - Add a PostDelayedTask method to the GeckoContentController interface. r=cjones 2013-02-25 15:50:49 -05:00
Robert O'Callahan
b18cd55753 Bug 840902. Part 2: Remove nsresults from various display list methods. r=mattwoodrow 2013-02-15 00:12:27 +13:00
Robert O'Callahan
3ac2cf9858 Bug 840902. Part 1: Stop checking the results of various display list methods. r=mattwoodrow 2013-02-15 00:08:08 +13:00
Chris Jones
3122a662de Bug 834470: Release AsyncPanZoomController and friends. r=roc 2013-01-24 19:59:10 -08:00
Robert O'Callahan
8f17d84858 Bug 828207: Wallpaper over not being able to find a layer manager on the main thread when initializing a remote render frame. That's OK, we'll find one on the compositor thread. r=cjones 2013-01-10 11:02:21 +01:00
Nicholas Cameron
9ab8b95c93 Bug 824454; use the resolution scale in OMTA transforms. r=cjones; a=blocking-basecamp 2013-01-08 10:39:12 +01:00
Chris Peterson
cf1c1b8b3f Gecko work for bug 823619: Dispatch spec-compliant mouse events when touch events are available. r=cjones,jlebar,schien,vingtetun a=blocking-basecamp
This is a rollowup of the following patches
Bug 823619, part 1: Make TabChild dispatch spec-compliant compat mouse events. r=mwu
Bug 823619, part 2: Use touch event for scrolling if available. r=cjones,schien,vingtetun a=blocking-basecamp
2013-01-05 15:53:16 +01:00
Benjamin Chen
5c48b89171 Bug 805746 - Send CustomScroll domevent to browser.js. r=cjones 2012-12-25 14:09:34 +08:00
Anthony Jones
0457c978bf Bug 811950 - Refactoring to use gfxPoint and gfxSize more. r=cjones 2012-12-23 10:51:39 -05:00
Chris Jones
7b890d6a68 Back out bug 814252. 2012-12-18 16:19:54 -08:00
Shih-Chiang Chien
5fa7302325 Bug 814252 - use touch event for scrolling if available. r=cjones. 2012-11-28 13:51:50 +08:00
Anthony Jones
4e9306bfcb Bug 798194 - Fix repaint request re-ordering bug. r=roc 2012-12-02 20:33:52 -05:00
Boris Zbarsky
b6ab89a435 Bug 815671 part 7. Fixes to layout code to not copy arrays implicitly. r=roc 2012-11-29 11:14:14 -05:00
Robert O'Callahan
7ce4800d7c Bug 788322. Don't crash when we drawWindow on a page containing a remote <iframe>. r=mattwoodrow
The test is actually a test for bug 792351. It doesn't pass yet, since
we're not drawing remote iframes properly, but the test should at least
not cause a crash.
2012-11-13 11:55:52 -08:00
Andrea Marchesini
9c195ea9c0 Bug 796275 - Context menu fires on wrong target out of process. r=cjones 2012-11-08 14:35:02 -05:00
Robert O'Callahan
4732ce9bea Bug 792351. Make GetRootFrameOffset handle the case where aContainerFrame is itself a reference frame. r=mattwoodrow 2012-11-05 19:11:25 +13:00
Chris Jones
441eef95fc Bug 807142: Make containers for DisplayRemote behave like leaf layers when we're resolution-scaling. r=mattwoodrow 2012-11-02 00:13:08 -07:00
Doug Sherk
5387c4066f Bug 746502: Add support for <meta name=viewport> on B2G/async panning and zooming r=cjones,smaug 2012-09-28 22:18:18 -04:00
Doug Sherk
0428a4ac02 Bug 784908: Part 1: Change names of FrameMetrics variables to be more descriptive, add documentation, change some coordinate spaces. r=roc 2012-09-28 22:16:34 -04:00
Matt Woodrow
db116030ba Bug 539356 - Part 9e - FrameLayerBuilder changes for display list invalidation. r=roc
* * *
imported patch move-by-correctly
2012-08-29 17:47:15 +12:00
Matt Woodrow
e813da3696 Bug 539356 - Part 9c - Remove old invalidation code. r=bz 2012-08-29 17:39:31 +12:00
Ed Morley
ed4fe023b5 Revert mozilla-inbound to e4dd1fa6d222 for crashes and test failures on a CLOSED TREE 2012-09-27 16:34:46 +01:00
Matt Woodrow
24eaff95c9 Bug 539356 - Part 9 - Implement DLBI. r=roc,bz,jwatt 2012-08-29 17:38:58 +12:00
Matt Woodrow
1efdc4e5f4 Bug 788044 - Make inactive layer subtrees relative to the ContainerLayer, not the reference frame. r=roc 2012-09-17 10:25:33 +12:00
Matt Woodrow
8e7c8ce3c8 Bug 788044 - Make transformed frames the reference frame for their display list tree. r=roc 2012-09-16 22:32:59 +12:00
Doug Sherk
d545b9e528 Bug 787549 - B2G: Stop simulating mouse events unless there's a tap. r=cjones 2012-09-14 21:16:32 -04:00
Ehsan Akhgari
46ad50db9b Merge the landing of bug 579517 to mozilla-inbound 2012-08-22 12:12:15 -04:00
Doug Sherk
462201569a Bug 780397: Convert FrameMetrics.mViewportScrollOffset from nsIntPoint to gfx::Point r=roc 2012-08-21 21:37:15 -07:00
Doug Sherk
b969777c8e Bug 775447: Rip out old checks for DOM touch listeners r=cjones 2012-08-21 21:37:09 -07:00
Doug Sherk
3dd9bb41eb Bug 775447: Let touch-event listeners cancel async pan/zoom r=cjones 2012-08-21 21:37:06 -07:00
David Zbarsky
b3df96766a Bug 784004 - Don't include Layers.h everywhere Part 3 r=nical 2012-08-21 00:06:46 -04:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
David Zbarsky
0cc0700b76 Bug 783841 - Fix build warnings in layers r=cjones 2012-08-19 20:07:31 -04:00
Matt Woodrow
5682ce76d7 Bug 778036 - Retain RefLayers instead of creating them every frame. r=roc 2012-08-07 15:00:41 +12:00
Doug Sherk
9acf0e2bf3 Bug 775463: Implement double-tap-to-zoom content r=cjones 2012-08-08 21:39:02 -07:00
Doug Sherk
049a1276f2 Bug 775448: Disable async scrolling when we detect a scrollable subframe r=cjones 2012-08-08 13:38:06 -07:00
Doug Sherk
7e4288b669 Bug 775447: Properly count number of touch listeners in AsyncPanZoomController r=cjones 2012-08-08 13:37:57 -07:00
Phil Ringnalda
5276031a18 Backout 8b3b879bc63f (Bug 777463), 32cc8084d1b7 (Bug 775451), ce9014442e13:4d52cfac7c37 (Bug 779572), b33f2b2dbbc5:963aed158547 (Bug 775463), 36832ad5ea65 (Bug 780210), 10695750e4e9:a2afc5b5e538 (Bug 775448), c9f42eebd694 (Bug 775447) for Linux bustage 2012-08-07 20:40:48 -07:00
Doug Sherk
8742979d54 Bug 775463: Implement double-tap-to-zoom content r=cjones 2012-08-07 18:51:08 -07:00
Doug Sherk
52710bc9b3 Bug 775448: Disable async scrolling when we detect a scrollable subframe r=cjones 2012-08-07 18:51:02 -07:00
Doug Sherk
e0db824a88 Bug 775447: Properly count number of touch listeners in AsyncPanZoomController r=cjones 2012-08-07 18:51:00 -07:00
David Zbarsky
0607749c3a Bug 706179 Part 3: Turn on the use of scaling for layers in FrameLayerBuilder r=mattwoodrow 2012-08-03 14:29:22 -07:00