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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp

Issue 2651093003: Make scroll translation transform nodes reference scroll nodes (Closed)
Patch Set: Add note about scroll tree differences Created 3 years, 11 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/platform/graphics/paint/ScrollPaintPropertyNode.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp b/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
index 09b623aadda84f0396c18166d68095290f7ae12e..e3a09aa3a98d8733633586aa71c53378ce9af4d3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/ScrollPaintPropertyNode.cpp
@@ -11,28 +11,23 @@ namespace blink {
ScrollPaintPropertyNode* ScrollPaintPropertyNode::root() {
DEFINE_STATIC_REF(ScrollPaintPropertyNode, root,
(ScrollPaintPropertyNode::create(
- nullptr, TransformPaintPropertyNode::root(), IntSize(),
- IntSize(), false, false, 0)));
+ nullptr, IntSize(), IntSize(), false, false, 0)));
return root;
}
String ScrollPaintPropertyNode::toString() const {
- FloatSize scrollOffset =
- m_scrollOffsetTranslation->matrix().to2DTranslation();
std::string mainThreadScrollingReasonsAsText =
MainThreadScrollingReason::mainThreadScrollingReasonsAsText(
m_mainThreadScrollingReasons);
return String::format(
- "parent=%p scrollOffsetTranslation=%s clip=%s bounds=%s "
+ "parent=%p clip=%s bounds=%s "
"userScrollableHorizontal=%s"
- " userScrollableVertical=%s mainThreadScrollingReasons=%s"
- "compositorElementId=(%d, %d)",
- m_parent.get(), scrollOffset.toString().ascii().data(),
- m_clip.toString().ascii().data(), m_bounds.toString().ascii().data(),
+ " userScrollableVertical=%s mainThreadScrollingReasons=%s",
+ m_parent.get(), m_clip.toString().ascii().data(),
+ m_bounds.toString().ascii().data(),
m_userScrollableHorizontal ? "yes" : "no",
m_userScrollableVertical ? "yes" : "no",
- mainThreadScrollingReasonsAsText.c_str(), m_compositorElementId.primaryId,
- m_compositorElementId.secondaryId);
+ mainThreadScrollingReasonsAsText.c_str());
}
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698