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

Unified Diff: Source/core/layout/LayoutBox.cpp

Issue 1212963002: Remove BackgroundBleedBackgroundOverBorder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove BackgroundBleedBackgroundOverBorder Created 5 years, 6 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/layout/LayoutBox.h ('k') | Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index 03137de32c7cecea550515ce35adf6ad0db469af..ec29ce1a630c24b8a3e22cc8311564fe2bf7432d 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -1284,29 +1284,6 @@ bool LayoutBox::computeBackgroundIsKnownToBeObscured()
return foregroundIsKnownToBeOpaqueInRect(backgroundRect, backgroundObscurationTestMaxDepth);
}
-bool LayoutBox::backgroundHasOpaqueTopLayer() const
-{
- const FillLayer& fillLayer = style()->backgroundLayers();
- if (fillLayer.clip() != BorderFillBox)
- return false;
-
- // Clipped with local scrolling
- if (hasOverflowClip() && fillLayer.attachment() == LocalBackgroundAttachment)
- return false;
-
- if (fillLayer.hasOpaqueImage(this) && fillLayer.hasRepeatXY() && fillLayer.image()->canRender(*this, style()->effectiveZoom()))
- return true;
-
- // If there is only one layer and no image, check whether the background color is opaque
- if (!fillLayer.next() && !fillLayer.hasImage()) {
- Color bgColor = resolveColor(CSSPropertyBackgroundColor);
- if (bgColor.alpha() == 255)
- return true;
- }
-
- return false;
-}
-
void LayoutBox::paintMask(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
BoxPainter(*this).paintMask(paintInfo, paintOffset);
« no previous file with comments | « Source/core/layout/LayoutBox.h ('k') | Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698