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

Unified Diff: Source/core/paint/VideoPainter.cpp

Issue 1316163002: Make the LayoutRect->FloatRect constructor explicit. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/paint/VideoPainter.cpp
diff --git a/Source/core/paint/VideoPainter.cpp b/Source/core/paint/VideoPainter.cpp
index 85d7d9d8f11ec98bebcc6b9a77233a2469cf7cae..684283306d1b81be63e32dbb7b65e7d4e1469ec3 100644
--- a/Source/core/paint/VideoPainter.cpp
+++ b/Source/core/paint/VideoPainter.cpp
@@ -39,7 +39,8 @@ void VideoPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
bool clip = !contentRect.contains(rect);
if (clip) {
context->save();
- context->clip(contentRect);
+ // TODO(chrishtr): this should be pixel-snapped.
+ context->clip(FloatRect(contentRect));
}
if (displayingPoster) {

Powered by Google App Engine
This is Rietveld 408576698