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

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

Issue 2464053003: Always paint background and shadow separately (Closed)
Patch Set: Rebaseline-cl (invisible pixel changes along shadow edges) (The original Patch Set 2 was removed to get the try result in Patch Set 1) Created 4 years, 1 month 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/LayoutImage.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutImage.cpp b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
index 8a4a964ca2cad019c4e0272ee2981e186d89d6c6..85d249923cf6e620d224bae7de8aba2874b26908 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -213,16 +213,6 @@ void LayoutImage::areaElementFocusChanged(HTMLAreaElement* areaElement) {
invalidatePaintAndMarkForLayoutIfNeeded();
}
-bool LayoutImage::boxShadowShouldBeAppliedToBackground(
- BackgroundBleedAvoidance bleedAvoidance,
- const InlineFlowBox*) const {
- if (!LayoutBoxModelObject::boxShadowShouldBeAppliedToBackground(
- bleedAvoidance))
- return false;
-
- return !const_cast<LayoutImage*>(this)->backgroundIsKnownToBeObscured();
-}
-
bool LayoutImage::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned) const {
if (!m_imageResource->hasImage() || m_imageResource->errorOccurred())
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableCell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698