зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1738152 - Remove WebRenderScrollDataWrapper methods that are no longer used. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D129769
This commit is contained in:
Родитель
2237232282
Коммит
f5de659316
|
@ -342,15 +342,6 @@ class MOZ_STACK_CLASS WebRenderScrollDataWrapper final {
|
|||
return false;
|
||||
}
|
||||
|
||||
EventRegions GetEventRegions() const {
|
||||
MOZ_ASSERT(IsValid());
|
||||
|
||||
if (AtBottomLayer()) {
|
||||
return mLayer->GetEventRegions();
|
||||
}
|
||||
return EventRegions();
|
||||
}
|
||||
|
||||
LayerIntRegion GetVisibleRegion() const {
|
||||
MOZ_ASSERT(IsValid());
|
||||
|
||||
|
@ -387,21 +378,6 @@ class MOZ_STACK_CLASS WebRenderScrollDataWrapper final {
|
|||
return Nothing();
|
||||
}
|
||||
|
||||
Maybe<ParentLayerIntRect> GetClipRect() const {
|
||||
MOZ_ASSERT(IsValid());
|
||||
|
||||
// This function is only used by tests.
|
||||
// This is a minimal implementation, which clips to the visible region,
|
||||
// that's sufficient to satisfy the tests.
|
||||
if (AtBottomLayer()) {
|
||||
auto localTransform = GetTransformTyped() * AsyncTransformMatrix();
|
||||
return Some(RoundedToInt(localTransform.TransformBounds(
|
||||
LayerRect(mLayer->GetVisibleRegion().GetBounds()))));
|
||||
}
|
||||
|
||||
return Nothing();
|
||||
}
|
||||
|
||||
EventRegionsOverride GetEventRegionsOverride() const {
|
||||
MOZ_ASSERT(IsValid());
|
||||
// Only ref layers can have an event regions override.
|
||||
|
@ -493,12 +469,6 @@ class MOZ_STACK_CLASS WebRenderScrollDataWrapper final {
|
|||
return mLayer->GetZoomAnimationId();
|
||||
}
|
||||
|
||||
bool IsBackfaceHidden() const {
|
||||
// This is only used by APZCTM hit testing, and WR does its own
|
||||
// hit testing, so no need to implement this.
|
||||
return false;
|
||||
}
|
||||
|
||||
Maybe<ScrollableLayerGuid::ViewID> GetAsyncZoomContainerId() const {
|
||||
MOZ_ASSERT(IsValid());
|
||||
return mLayer->GetAsyncZoomContainerId();
|
||||
|
|
Загрузка…
Ссылка в новой задаче