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

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

Issue 2699593006: Refactor to remove need for infiniteIntRect when computing rects in pre-paint (Closed)
Patch Set: Created 3 years, 10 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 bb09206751b592d16f75273fdfd39e9d2d27840f..b326c8e2a7b3e5ad83ae1d2b7a31a2ace51c26a3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h
@@ -45,6 +45,12 @@ class PLATFORM_EXPORT FloatClipRect {
m_isInfinite = false;
}
+ void moveBy(const FloatPoint& offset) {
wkorman 2017/02/16 21:45:32 Maybe worth starting a FloatClipRectTest. Would ob
chrishtr 2017/02/16 23:48:32 Done.
+ if (m_isInfinite)
+ return;
+ m_rect.moveBy(offset);
+ }
+
bool isInfinite() const { return m_isInfinite; }
private:

Powered by Google App Engine
This is Rietveld 408576698