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

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

Issue 2225033003: Separate backgroundObscurationStatus and hasBoxDecorationBackground (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 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: 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 a582faf0c63e7c1a67eccdf9170ff683c4d81c42..e2c218ee307c366118ab6f71b3422e6b565abd64 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImage.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutImage.cpp
@@ -209,7 +209,7 @@ bool LayoutImage::boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance
if (!LayoutBoxModelObject::boxShadowShouldBeAppliedToBackground(bleedAvoidance))
return false;
- return !const_cast<LayoutImage*>(this)->boxDecorationBackgroundIsKnownToBeObscured();
+ return !const_cast<LayoutImage*>(this)->backgroundIsKnownToBeObscured();
}
bool LayoutImage::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect, unsigned) const
@@ -243,7 +243,7 @@ bool LayoutImage::foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
bool LayoutImage::computeBackgroundIsKnownToBeObscured() const
{
- if (!hasBackground())
+ if (!styleRef().hasBackground())
return false;
LayoutRect paintedExtent;
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxTest.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698