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

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: rebase Created 4 years, 6 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 e6ce0926a2f6682018e280622a60e61e4f4bfe99..bf67c5a40a6e0d90e096ce7bb999f14a1681686c 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"
@@ -1639,6 +1640,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