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

Unified Diff: Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp

Issue 1011703005: [Slimming Paint] Allow 3D transforms of different types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: debug strings Created 5 years, 9 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: Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
diff --git a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
index 681e849a3c474a9c50f430eeced73b5b5f326cd5..f23c5182a0dfe7fbd6eba2d20b2bf819f4c7fd43 100644
--- a/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
+++ b/Source/platform/graphics/paint/DisplayItemTransformTreeBuilder.cpp
@@ -44,7 +44,7 @@ static BeginDisplayItemClassification classifyBeginItem(const DisplayItem& begin
{
ASSERT(beginDisplayItem.isBegin());
- if (beginDisplayItem.type() == DisplayItem::BeginTransform3D) {
+ if (DisplayItem::isTransform3DType(beginDisplayItem.type())) {
const auto& begin3D = static_cast<const BeginTransform3DDisplayItem&>(beginDisplayItem);
*transform = begin3D.transform();
if (transform->isIdentityOr2DTranslation())

Powered by Google App Engine
This is Rietveld 408576698