| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/paint/FloatClipDisplayItem.h" | 6 #include "platform/graphics/paint/FloatClipDisplayItem.h" |
| 7 | 7 |
| 8 #include "platform/geometry/RoundedRect.h" | |
| 9 #include "platform/graphics/GraphicsContext.h" | 8 #include "platform/graphics/GraphicsContext.h" |
| 10 #include "public/platform/WebDisplayItemList.h" | 9 #include "public/platform/WebDisplayItemList.h" |
| 11 #include "third_party/skia/include/core/SkScalar.h" | 10 #include "third_party/skia/include/core/SkScalar.h" |
| 12 | 11 |
| 13 namespace blink { | 12 namespace blink { |
| 14 | 13 |
| 15 void FloatClipDisplayItem::replay(GraphicsContext* context) | 14 void FloatClipDisplayItem::replay(GraphicsContext* context) |
| 16 { | 15 { |
| 17 context->save(); | 16 context->save(); |
| 18 context->clip(m_clipRect); | 17 context->clip(m_clipRect); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 void FloatClipDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& strin
gBuilder) const | 34 void FloatClipDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& strin
gBuilder) const |
| 36 { | 35 { |
| 37 DisplayItem::dumpPropertiesAsDebugString(stringBuilder); | 36 DisplayItem::dumpPropertiesAsDebugString(stringBuilder); |
| 38 stringBuilder.append(WTF::String::format(", floatClipRect: [%f,%f,%f,%f]}", | 37 stringBuilder.append(WTF::String::format(", floatClipRect: [%f,%f,%f,%f]}", |
| 39 m_clipRect.x(), m_clipRect.y(), m_clipRect.width(), m_clipRect.height())
); | 38 m_clipRect.x(), m_clipRect.y(), m_clipRect.width(), m_clipRect.height())
); |
| 40 } | 39 } |
| 41 | 40 |
| 42 #endif | 41 #endif |
| 43 | 42 |
| 44 } // namespace blink | 43 } // namespace blink |
| OLD | NEW |