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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/TransformPaintPropertyNode.cpp

Issue 2574713003: Add toString() for paint property node classes (Closed)
Patch Set: Update test Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/paint/TransformPaintPropertyNode.h" 5 #include "platform/graphics/paint/TransformPaintPropertyNode.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 TransformPaintPropertyNode* TransformPaintPropertyNode::root() { 9 TransformPaintPropertyNode* TransformPaintPropertyNode::root() {
10 DEFINE_STATIC_REF(TransformPaintPropertyNode, root, 10 DEFINE_STATIC_REF(TransformPaintPropertyNode, root,
11 (TransformPaintPropertyNode::create( 11 (TransformPaintPropertyNode::create(
12 nullptr, TransformationMatrix(), FloatPoint3D()))); 12 nullptr, TransformationMatrix(), FloatPoint3D())));
13 return root; 13 return root;
14 } 14 }
15 15
16 String TransformPaintPropertyNode::toString() const {
17 return "transform=" + m_matrix.toString() + " origin=" + m_origin.toString();
18 }
19
16 } // namespace blink 20 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698