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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2474813002: Clamping shouldn't clear the fragment anchor. (Closed)
Patch Set: address review comments Created 4 years, 1 month 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/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index d72cf5eeb900e3de2c4832ecce03c1e90cefbd1e..65e89402199e642ea9bb0ac1e76674ba5fb8adb6 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3635,7 +3635,8 @@ void FrameView::updateScrollOffset(const ScrollOffset& offset,
if (!scrollbarsSuppressed())
m_pendingScrollDelta += scrollDelta;
- clearFragmentAnchor();
+ if (scrollTypeClearsFragmentAnchor(scrollType))
+ clearFragmentAnchor();
updateLayersAndCompositingAfterScrollIfNeeded(scrollDelta);
Document* document = m_frame->document();

Powered by Google App Engine
This is Rietveld 408576698