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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h

Issue 2745563004: Reduce copying of local data structures in GeometryMapper and PaintLayerClipper. (Closed)
Patch Set: none Created 3 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: third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
index cf663efaa5e34c18c96c09b24175ca3b7149eb15..954201d64ce75836afe4e83cf622804b8856e549 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
@@ -20,7 +20,7 @@ class PLATFORM_EXPORT FloatClipRect {
m_hasRadius(false),
m_isInfinite(true) {}
- FloatClipRect(const FloatRect& rect)
+ explicit FloatClipRect(const FloatRect& rect)
: m_rect(rect), m_hasRadius(false), m_isInfinite(false) {}
const FloatRect& rect() const { return m_rect; }

Powered by Google App Engine
This is Rietveld 408576698