Skip to content

Commit

Permalink
Backed out 2 changesets (bug 1509575) for failing wpt at css/cssom-vi…
Browse files Browse the repository at this point in the history
…ew/scroll-behavior-main-frame-root.html on a CLOSED TREE

Backed out changeset 245d6855cd3b (bug 1509575)
Backed out changeset 7dcfa876f76c (bug 1509575)
  • Loading branch information
AndreeaPavel committed Jan 11, 2019
1 parent f47fd95 commit 2a44f0a
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion gfx/layers/Layers.h
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ class LayerManager : public FrameRecorder {
* Flag the next paint as the first for a document.
*/
virtual void SetIsFirstPaint() {}
virtual bool GetIsFirstPaint() const { return false; }

/**
* Set the current focus target to be sent with the next paint.
Expand Down
3 changes: 0 additions & 3 deletions gfx/layers/client/ClientLayerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ class ClientLayerManager final : public LayerManager,
}

virtual void SetIsFirstPaint() override;
virtual bool GetIsFirstPaint() const override {
return mForwarder->GetIsFirstPaint();
}

virtual void SetFocusTarget(const FocusTarget& aFocusTarget) override;

Expand Down
1 change: 0 additions & 1 deletion gfx/layers/ipc/ShadowLayers.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ class ShadowLayerForwarder final : public LayersIPCActor,
* Flag the next paint as the first for a document.
*/
void SetIsFirstPaint() { mIsFirstPaint = true; }
bool GetIsFirstPaint() const { return mIsFirstPaint; }

/**
* Set the current focus target to be sent with the next paint.
Expand Down
1 change: 0 additions & 1 deletion gfx/layers/wr/WebRenderLayerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ class WebRenderLayerManager final : public LayerManager {
}
virtual bool NeedsComposite() const override { return mNeedsComposite; }
virtual void SetIsFirstPaint() override { mIsFirstPaint = true; }
virtual bool GetIsFirstPaint() const override { return mIsFirstPaint; }
virtual void SetFocusTarget(const FocusTarget& aFocusTarget) override;

virtual already_AddRefed<PersistentBufferProvider>
Expand Down
7 changes: 0 additions & 7 deletions layout/base/nsLayoutUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8708,13 +8708,6 @@ static void MaybeReflowForInflationScreenSizeChange(
metrics.SetBaseScrollOffset(apzScrollPosition);

if (aIsRootContent) {
if (aLayerManager->GetIsFirstPaint()) {
// Restore the visual viewport offset to the copy stored on the
// main thread.
presShell->SetPendingVisualViewportOffset(
Some(presShell->GetVisualViewportOffset()));
}

if (const Maybe<nsPoint>& visualOffset =
presShell->GetPendingVisualViewportOffset()) {
metrics.SetVisualViewportOffset(CSSPoint::FromAppUnits(*visualOffset));
Expand Down

0 comments on commit 2a44f0a

Please sign in to comment.