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

Unified Diff: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h

Issue 1949253004: Rounded background image fast path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
index 9796cc3b8347ad29f000d0ef6904cf3b575c5e60..48c9bcdb594df75063a6cb26922a69e9d6b09dc5 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -19,7 +19,7 @@ class LayoutObject;
class LayoutRect;
class BackgroundImageGeometry {
- STACK_ALLOCATED();
+ DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
public:
BackgroundImageGeometry()
: m_hasNonLocalGeometry(false)
@@ -28,12 +28,12 @@ public:
void calculate(const LayoutBoxModelObject&, const LayoutBoxModelObject* paintContainer,
const GlobalPaintFlags, const FillLayer&, const LayoutRect& paintRect);
- LayoutRect destRect() const { return m_destRect; }
- LayoutSize tileSize() const { return m_tileSize; }
- LayoutPoint phase() const { return m_phase; }
+ const LayoutRect& destRect() const { return m_destRect; }
+ const LayoutSize& tileSize() const { return m_tileSize; }
+ const LayoutPoint& phase() const { return m_phase; }
// Space-size represents extra width and height that may be added to
// the image if used as a pattern with background-repeat: space.
- LayoutSize spaceSize() const { return m_repeatSpacing; }
+ const LayoutSize& spaceSize() const { return m_repeatSpacing; }
// Has background-attachment: fixed. Implies that we can't always cheaply compute destRect.
bool hasNonLocalGeometry() const { return m_hasNonLocalGeometry; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698