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

Unified Diff: Source/core/platform/graphics/LayoutPoint.h

Issue 20723003: Fix pixel snapping issues when layers become composited (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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: Source/core/platform/graphics/LayoutPoint.h
diff --git a/Source/core/platform/graphics/LayoutPoint.h b/Source/core/platform/graphics/LayoutPoint.h
index e5de27cfe7a127a6c6e937ccadeaff9fa6616581..15b8b2a81c487f290e09f1ec09ee2ff53d981013 100644
--- a/Source/core/platform/graphics/LayoutPoint.h
+++ b/Source/core/platform/graphics/LayoutPoint.h
@@ -82,6 +82,11 @@ public:
return LayoutPoint(m_y, m_x);
}
+ LayoutPoint fraction() const
+ {
+ return LayoutPoint(m_x.fraction(), m_y.fraction());
+ }
+
private:
LayoutUnit m_x, m_y;
};

Powered by Google App Engine
This is Rietveld 408576698