Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: third_party/WebKit/Source/web/RotationViewportAnchor.cpp

Issue 2184333002: Fix scroll anchoring during viewport resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment on m_drift Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/RotationViewportAnchor.cpp
diff --git a/third_party/WebKit/Source/web/RotationViewportAnchor.cpp b/third_party/WebKit/Source/web/RotationViewportAnchor.cpp
index fa65feb1fd9a9329271c26f7c2a5dba78e73b544..8449f57ef22bbad0da6908cd81ad64ea14423531 100644
--- a/third_party/WebKit/Source/web/RotationViewportAnchor.cpp
+++ b/third_party/WebKit/Source/web/RotationViewportAnchor.cpp
@@ -84,7 +84,8 @@ RotationViewportAnchor::RotationViewportAnchor(
VisualViewport& visualViewport,
const FloatSize& anchorInInnerViewCoords,
PageScaleConstraintsSet& pageScaleConstraintsSet)
- : ViewportAnchor(rootFrameView, visualViewport)
+ : m_rootFrameView(&rootFrameView)
+ , m_visualViewport(&visualViewport)
, m_anchorInInnerViewCoords(anchorInInnerViewCoords)
, m_pageScaleConstraintsSet(pageScaleConstraintsSet)
{
« no previous file with comments | « third_party/WebKit/Source/web/RotationViewportAnchor.h ('k') | third_party/WebKit/Source/web/ViewportAnchor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698