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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp

Issue 2890953002: [SPv1] Always set a CompositorElementId on main graphics layers; use PaintLayer id. (Closed)
Patch Set: none Created 3 years, 7 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/core/page/scrolling/ScrollState.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
index e428017bd474baf1897d20bc9141cf97e81d9300..fe5daa5c507dfb1514c22a6fe3ce551f2426da68 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp
@@ -8,6 +8,7 @@
#include "core/dom/DOMNodeIds.h"
#include "core/dom/Element.h"
#include "core/dom/ExceptionCode.h"
+#include "core/layout/LayoutObject.h"
#include "platform/graphics/CompositorElementId.h"
#include "platform/wtf/PtrUtil.h"
@@ -103,7 +104,8 @@ Element* ScrollState::CurrentNativeScrollingElement() {
void ScrollState::SetCurrentNativeScrollingElement(Element* element) {
element_ = element;
data_->set_current_native_scrolling_element(CompositorElementIdFromDOMNodeId(
- DOMNodeIds::IdForNode(element), CompositorElementIdNamespace::kScroll));
+ DOMNodeIds::IdForNode(element),
+ CompositorElementIdNamespace::kScrollState));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698