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

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

Issue 2606863002: Complete XXXPaintPropertyNode::operator== and toString() (Closed)
Patch Set: - 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 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/ClipPaintPropertyNode.h" 5 #include "platform/graphics/paint/ClipPaintPropertyNode.h"
6 6
7 #include "platform/geometry/LayoutRect.h" 7 #include "platform/geometry/LayoutRect.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 ClipPaintPropertyNode* ClipPaintPropertyNode::root() { 11 ClipPaintPropertyNode* ClipPaintPropertyNode::root() {
12 DEFINE_STATIC_REF(ClipPaintPropertyNode, root, 12 DEFINE_STATIC_REF(ClipPaintPropertyNode, root,
13 (ClipPaintPropertyNode::create( 13 (ClipPaintPropertyNode::create(
14 nullptr, TransformPaintPropertyNode::root(), 14 nullptr, TransformPaintPropertyNode::root(),
15 FloatRoundedRect(LayoutRect::infiniteIntRect())))); 15 FloatRoundedRect(LayoutRect::infiniteIntRect()))));
16 return root; 16 return root;
17 } 17 }
18 18
19 String ClipPaintPropertyNode::toString() const { 19 String ClipPaintPropertyNode::toString() const {
20 return String::format("localTransformSpace=%p rect=%s", 20 return String::format(
21 m_localTransformSpace.get(), 21 "parent=%p localTransformSpace=%p rect=%s directCompositingReasons=%s",
22 m_clipRect.toString().ascii().data()); 22 m_parent.get(), m_localTransformSpace.get(),
23 m_clipRect.toString().ascii().data(),
24 compositingReasonsAsString(m_directCompositingReasons).ascii().data());
23 } 25 }
24 26
25 } // namespace blink 27 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698