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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutVideo.cpp

Issue 2172503002: Fix subpixel accumulation for composited content layers Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add test expectation Created 4 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: third_party/WebKit/Source/core/layout/LayoutVideo.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutVideo.cpp b/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
index 2a9483ee9b58da882a0e22df4f0b4b5e07d0c19c..6080ec44a5e217fce8f0bf1ff75a8b71c4fdef04 100644
--- a/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutVideo.cpp
@@ -122,13 +122,13 @@ void LayoutVideo::imageChanged(WrappedImagePtr newImage, const IntRect* rect)
updateIntrinsicSize();
}
-IntRect LayoutVideo::videoBox() const
+LayoutRect LayoutVideo::videoBox() const
{
const LayoutSize* overriddenIntrinsicSize = nullptr;
if (videoElement()->shouldDisplayPosterImage())
overriddenIntrinsicSize = &m_cachedImageSize;
- return pixelSnappedIntRect(replacedContentRect(overriddenIntrinsicSize));
+ return replacedContentRect(overriddenIntrinsicSize);
}
bool LayoutVideo::shouldDisplayVideo() const

Powered by Google App Engine
This is Rietveld 408576698