mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1224021 - Support fractional async scroll offsets in the reftest harness. r=tn
This commit is contained in:
parent
803ab76f09
commit
57bd184fa2
@ -2326,7 +2326,7 @@ nsDOMWindowUtils::GetAsyncPanZoomEnabled(bool *aResult)
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsDOMWindowUtils::SetAsyncScrollOffset(nsIDOMNode* aNode,
|
||||
int32_t aX, int32_t aY)
|
||||
float aX, float aY)
|
||||
{
|
||||
nsCOMPtr<Element> element = do_QueryInterface(aNode);
|
||||
if (!element) {
|
||||
|
@ -49,7 +49,7 @@ interface nsIJSRAIIHelper;
|
||||
interface nsIContentPermissionRequest;
|
||||
interface nsIObserver;
|
||||
|
||||
[scriptable, uuid(a30a95ac-3b95-4251-88dc-8efa89ba9f9c)]
|
||||
[scriptable, uuid(3f3f2bf4-d411-44b2-b2f7-dee5948c4763)]
|
||||
interface nsIDOMWindowUtils : nsISupports {
|
||||
|
||||
/**
|
||||
@ -1431,7 +1431,7 @@ interface nsIDOMWindowUtils : nsISupports {
|
||||
* with that offset if async scrolling is enabled, and then the offset
|
||||
* will be removed. Only call this while test-controlled refreshes is enabled.
|
||||
*/
|
||||
void setAsyncScrollOffset(in nsIDOMNode aNode, in int32_t aX, in int32_t aY);
|
||||
void setAsyncScrollOffset(in nsIDOMNode aNode, in float aX, in float aY);
|
||||
|
||||
/**
|
||||
* Set async zoom value. aRootElement should be the document element of our
|
||||
|
@ -781,7 +781,7 @@ GetAPZCForViewID(Layer* aLayer, FrameMetrics::ViewID aScrollID)
|
||||
|
||||
bool
|
||||
LayerTransactionParent::RecvSetAsyncScrollOffset(const FrameMetrics::ViewID& aScrollID,
|
||||
const int32_t& aX, const int32_t& aY)
|
||||
const float& aX, const float& aY)
|
||||
{
|
||||
if (mDestroyed || !layer_manager() || layer_manager()->IsDestroyed()) {
|
||||
return false;
|
||||
|
@ -132,7 +132,7 @@ protected:
|
||||
MaybeTransform* aTransform)
|
||||
override;
|
||||
virtual bool RecvSetAsyncScrollOffset(const FrameMetrics::ViewID& aId,
|
||||
const int32_t& aX, const int32_t& aY) override;
|
||||
const float& aX, const float& aY) override;
|
||||
virtual bool RecvSetAsyncZoom(const FrameMetrics::ViewID& aId,
|
||||
const float& aValue) override;
|
||||
virtual bool RecvFlushApzRepaints() override;
|
||||
|
@ -90,7 +90,7 @@ parent:
|
||||
// The next time the layer tree is composited, add this async scroll offset in
|
||||
// CSS pixels for the given ViewID.
|
||||
// Useful for testing rendering of async scrolling.
|
||||
sync SetAsyncScrollOffset(ViewID id, int32_t x, int32_t y);
|
||||
sync SetAsyncScrollOffset(ViewID id, float x, float y);
|
||||
|
||||
// The next time the layer tree is composited, include this async zoom in
|
||||
// for the given ViewID.
|
||||
|
Loading…
Reference in New Issue
Block a user