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

Side by Side Diff: Source/platform/graphics/paint/FloatClipDisplayItem.cpp

Issue 815933006: Change all uses of the RoundedRect class to use FloatRoundedRect instead. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 12 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/paint/ClipRecorder.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/ClipRecorder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698