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

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

Issue 1159773005: Handle border-image with fill and zero-width borders (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comment Created 5 years, 7 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/layout/LayoutBox.cpp
diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
index 0dc69e022b5e13d8e96858008db145adf629eb62..eea2ba0f866761c0d4fde5bcdde3ef417cf98a0a 100644
--- a/Source/core/layout/LayoutBox.cpp
+++ b/Source/core/layout/LayoutBox.cpp
@@ -4793,7 +4793,7 @@ bool LayoutBox::mustInvalidateBackgroundOrBorderPaintOnWidthChange() const
return true;
// Our fill layers are ok. Let's check border.
- if (style()->hasBorder() && canRenderBorderImage())
+ if (style()->hasBorderDecoration() && canRenderBorderImage())
return true;
return false;
@@ -4812,7 +4812,7 @@ bool LayoutBox::mustInvalidateBackgroundOrBorderPaintOnHeightChange() const
return true;
// Our fill layers are ok. Let's check border.
- if (style()->hasBorder() && canRenderBorderImage())
+ if (style()->hasBorderDecoration() && canRenderBorderImage())
return true;
return false;
@@ -4820,7 +4820,7 @@ bool LayoutBox::mustInvalidateBackgroundOrBorderPaintOnHeightChange() const
bool LayoutBox::canRenderBorderImage() const
{
- if (!style()->hasBorder())
+ if (!style()->hasBorderDecoration())
return false;
StyleImage* borderImage = style()->borderImage().image();
« no previous file with comments | « LayoutTests/fast/borders/resources/svg-100x100-intrinsic.svg ('k') | Source/core/layout/LayoutBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698