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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: respond to reviewer feedback. Created 4 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index 89816bd7f4e6f599ba3ebc9a92879f3cfb79b9c9..ffafdc2233d447be21b6ac584674caa8b06e3e02 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -45,6 +45,7 @@
#include "core/css/PseudoStyleRequest.h"
#include "core/dom/AXObjectCache.h"
+#include "core/dom/DOMNodeIds.h"
#include "core/dom/Node.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/FrameSelection.h"
@@ -1620,6 +1621,11 @@ void PaintLayerScrollableArea::ScrollbarManager::destroyScrollbar(ScrollbarOrien
scrollbar = nullptr;
}
+uint64_t PaintLayerScrollableArea::id() const
+{
+ return DOMNodeIds::idForNode(box().node());
+}
+
DEFINE_TRACE(PaintLayerScrollableArea::ScrollbarManager)
{
visitor->trace(m_scrollableArea);

Powered by Google App Engine
This is Rietveld 408576698