Markus Stange
b7d7c15fe9
Bug 1209970 - Fire scroll events early in the refresh tick. r=mats
...
With APZ we want to be firing scroll events to content more consistently, so
we tie them to the refresh driver tick rather than firing them on paint or
haphazardly on the next spin of the event loop.
Patch by Markus Stange, test fixes by Kartikaya Gupta
2015-12-17 17:19:30 -05:00
Avi Halachmi
cb31fcea50
Bug 1228147: part 2: Add telemetry probe for synchronous scroll. r=kats
2015-12-16 20:06:40 +02:00
Wes Kocher
c09cb3b32b
Backed out 2 changesets (bug 1228147) for build failures in histogram.h on a CLOSED TREE
...
Backed out changeset 35b4ba91e093 (bug 1228147)
Backed out changeset 8a2f45c8d25d (bug 1228147)
2015-12-16 09:27:37 -08:00
Avi Halachmi
8c9734035f
Bug 1228147: part 2: Add telemetry probe for synchronous scroll. r=kats
2015-12-16 17:18:45 +02:00
Kartikaya Gupta
07e7b9c39e
Bug 1232048 - Fix breakage in scroll snapping when snapping twice in a row to the same thing with non-smooth-scrolls in between. r=botond
2015-12-16 10:42:49 -05:00
Carsten "Tomcat" Book
b2d4badf93
Backed out changeset 04b102bec363 (bug 1147673)
2015-12-16 11:52:39 +01:00
Carsten "Tomcat" Book
791f2a3ca3
Backed out changeset 68b33692bed3 (bug 1147673)
2015-12-16 11:52:37 +01:00
Markus Stange
7ce6f2aca9
Bug 1147673 - Make display items know about their scroll clips. r=tn, r=roc
2015-12-12 10:58:37 -05:00
Markus Stange
b3f30478ba
Bug 1147673 - Use ancestor clip for root scrollable framemetrics clips. r=tn
2015-11-05 17:54:44 +01:00
Kartikaya Gupta
c660d0e969
Bug 1229052 - Log a warning when we detect a scroll-linked effect based on the scroll event. r=roc
2015-12-14 14:47:24 -05:00
Kartikaya Gupta
3881869736
Back out 5 csets from bug 1229052 on a CLOSED TREE for failing to fix the nonunified build error even after many attempts. r=backout
2015-12-14 15:52:31 -05:00
Kartikaya Gupta
1c4abeb130
Bug 1229052 - Log a warning when we detect a scroll-linked effect based on the scroll event. r=roc
2015-12-14 14:47:24 -05:00
Kartikaya Gupta
f20d6e312b
Bug 1228407 - Avoid a scenario where content floods APZ with smooth-scroll requests and blocks it from syncing a new scroll offset back to the main thread. r=botond
2015-12-09 10:13:34 -05:00
Kartikaya Gupta
9280e7779a
Back out three patches from bug 1228407 on a CLOSED TREE for causing various mochitest failures. r=backout
2015-12-08 21:00:30 -05:00
Kartikaya Gupta
110d80bd75
Bug 1228407 - Avoid a scenario where content floods APZ with smooth-scroll requests and blocks it from syncing a new scroll offset back to the main thread. r=botond
2015-12-08 14:56:26 -05:00
Kartikaya Gupta
a607f96e84
Bug 1156392 - Remove an ifdef condition that we don't need any more. r=tn
2015-12-01 22:21:42 -05:00
Kartikaya Gupta
f5c1eb50ef
Bug 1228357 - When saving/restoring a scrollframe's state, only save/restore resolution for the root scrollframe. r=roc
2015-11-26 21:25:53 -05:00
Ting-Yu Lin
ec7b5746f9
Bug 1226875 - Remove nsIFrame::GetFirstChild(). r=mats
2015-11-26 17:12:39 +08:00
Nicholas Nethercote
ce94aae3ae
Bug 1225007 (part 1, attempt 3) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 14:10:38 +11:00
Kartikaya Gupta
a58e442256
Bug 1226872 - Stop keeping a copy of the resolution in the root scrollframe. r=roc
...
The only reason we had this in the scrollframe at all was so that it could be
saved/restored as part of the frame state when leaving a page and then going
back to it. However we can accomplish this by just reading/writing the resolution
from/to the presshell instead, so there's no need to keep a second copy of it.
2015-11-23 09:14:15 -05:00
Phil Ringnalda
040c117af2
Backed out 2 changesets (bug 1225007) for frequent OS X "Shouldn't return empty rect" assertion failures, a=backout
...
Backed out changeset c5b352c74b35 (bug 1225007)
Backed out changeset 8a513c70ce7c (bug 1225007)
2015-11-19 20:55:26 -08:00
Nicholas Nethercote
5db293bd80
Bug 1225007 (part 1, attempt 2) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-19 14:10:38 +11:00
Nicholas Nethercote
117b39c2e9
Backout 52ba24123046 and 66768d6a50fa (bug 1225007) for causing lots of test assertions on Mac. CLOSED TREE
2015-11-17 17:02:39 -08:00
Nicholas Nethercote
0a8fdd9562
Bug 1225007 (part 1) - Use LayoutDevicePixel more in Cocoa widget code. r=kats.
2015-11-15 21:37:52 -08:00
Matt Brubeck
74ea942c8e
Bug 1081272 - Include position and transform when computing header/footer size [r=tn]
2015-11-12 16:55:02 -08:00
Matt Brubeck
bd70e2125d
Bug 1224307 - Fix page scrolling for non-full-width fixed headers/footers [r=tn]
2015-11-12 16:55:00 -08:00
Phil Ringnalda
2d3a6e0e71
Back out changeset cd0be67d2344 (bug 1224307) for test_page_scroll_with_fixed_pos.html bustage
...
CLOSED TREE
2015-11-12 20:18:38 -08:00
Phil Ringnalda
a2766c5fd0
Back out changeset 13335ded96b9 (bug 1081272) for test_page_scroll_with_fixed_pos.html bustage
...
CLOSED TREE
2015-11-12 20:18:03 -08:00
Matt Brubeck
68f9a1cb34
Bug 1081272 - Include position and transform when computing header/footer size [r=tn]
2015-11-12 16:55:02 -08:00
Matt Brubeck
055e068845
Bug 1224307 - Fix page scrolling for non-full-width fixed headers/footers [r=tn]
2015-11-12 16:55:00 -08:00
Mats Palmgren
038a96ac8b
Bug 1092626 - Don't try to restore the scroll position if the frame is still dirty or has dirty children. r=roc
2015-11-11 11:33:34 +01:00
Timothy Nikkel
8589180a00
Bug 1220114. Part 2. If a scroll frame is forced to layerize because of an active descendant scroll frame then set a displayport on the ancestor scroll frame so that next paint we don't have to force layerization after the fact and we can do a fully proper paint. r=mstange
2015-11-06 17:32:03 -06:00
Timothy Nikkel
9c60f7dc67
Bug 1220114. Part 1. Change ScrollFrameHelper::DecideScrollableLayer to recompute the current animated geometry root any time mWillBuildScrollableLayer changes in addition to when usingDisplayPort changes. r=mstange
...
Changes in either one can result in AGRs being created or removed (although nothing removes them at this point in time).
2015-11-06 17:32:03 -06:00
Timothy Nikkel
4d76dffd3a
Bug 1208780. Set a zero-margin displayport on all scrollable ancestors of frames with displayports if they don't already have a displayport. r=botond
2015-11-05 18:57:17 -06:00
Markus Stange
ea2564ae6e
Bug 1201330 - Keep scroll handler induced layer activity active until the scroll frame becomes inactive. r=roc
2015-10-30 16:28:53 +01:00
Birunthan Mohanathas
ac37dec517
Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj
2015-11-02 07:53:26 +02:00
Timothy Nikkel
a6a132c614
Bug 1220020. Recompute the current animated geometry root when a child scroll frame forces us to be layerized, and therefore turns us into an animated geometry root. r=mstange
2015-11-01 11:45:40 -06:00
Carsten "Tomcat" Book
e5da27d87e
Backed out changeset d5d68c0258f3 (bug 1201330)
2015-10-30 14:44:06 +01:00
Markus Stange
98e1e7f57e
Bug 1201330 - Keep scroll handler induced layer activity active until the scroll frame becomes inactive. r=roc
2015-10-27 17:18:03 +01:00
David Anderson
0c1650ab9e
Fix scrollbars on subframes not directing APZ events to the correct scrollframe. (bug 1213324, r=tn)
2015-10-20 02:39:34 -07:00
Jim Mathies
4000da74e2
Bug 1214878 - When async scrolling with e10s hide windowed plugins in sub documents. r=roc
2015-10-19 10:38:42 -05:00
Nathan Froyd
4e6d8f6705
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Timothy Nikkel
ee64435e14
Bug 1210578. Part 3. Create DecideScrollableLayer that encapsulates all logic to create display ports and build scrollable layers. r=mstange
...
For root scroll frames we need information about the async scrolling (or lack thereof) of the scroll frame before we get to ScrollFrameHelper::BuildDisplayList for the scroll frame. We need it in nsLayoutUtils::PaintFrame and nsSubdocumentFrame::BuildDisplayList. So we factor out all the code responsible for async scrolling decisions into one function we can call from all three places.
2015-10-12 15:21:49 -05:00
Timothy Nikkel
2b84553ab2
Bug 1210578. Part 2. Rename shouldBuildLayer to couldBuildLayer to better reflect it's actual meaning. r=mstange
...
Also remove one use of the variable that is unnecessary.
2015-10-12 15:21:49 -05:00
Timothy Nikkel
fe19ed8161
Bug 1210578. Part 1. Rename mShouldBuildScrollableLayer to mWillBuildScrollableLayer to better capture the meaning of the variable. r=mstange
2015-10-12 15:21:49 -05:00
Timothy Nikkel
8b9efda4f0
Backout part 1 of bug 1195431 (cf841511b71a).
2015-10-12 15:21:48 -05:00
Timothy Nikkel
d93fe80287
Backout part 2 of bug 1195431 (2e5d1c6a4a0c).
2015-10-12 15:21:48 -05:00
Timothy Nikkel
5ed3ccd4b3
Backout part 3 of bug 1195431 (8270ee9be504).
2015-10-12 15:21:48 -05:00
Jim Mathies
d16758c6d9
Bug 1137944 - Add plugin window handling for apz related notifications received by the content process. r=mstange
2015-10-06 14:23:25 -05:00
Jim Mathies
7ed2cbbd16
Bug 1137944 - Add a pref to control plugin window hiding. r=roc
2015-10-06 14:23:24 -05:00