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

Unified Diff: Source/platform/geometry/LayoutSize.h

Issue 20723003: Fix pixel snapping issues when layers become composited (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring up to ToT again... Created 6 years, 11 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 | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/LayoutSize.h
diff --git a/Source/platform/geometry/LayoutSize.h b/Source/platform/geometry/LayoutSize.h
index 1d0e94c3aa3aacf7f10ada632f76e586d91e3d7e..c950cf535102e968382ba618cd2751e40376812b 100644
--- a/Source/platform/geometry/LayoutSize.h
+++ b/Source/platform/geometry/LayoutSize.h
@@ -126,6 +126,11 @@ public:
return LayoutSize(width(), width() * aspectRatio.height() / aspectRatio.width());
}
+ LayoutSize fraction() const
+ {
+ return LayoutSize(m_width.fraction(), m_height.fraction());
+ }
+
private:
LayoutUnit m_width, m_height;
};
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698