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

Unified Diff: Source/core/style/ComputedStyle.h

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
« no previous file with comments | « Source/core/style/BorderData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index 64abb5eb0ef055f4949c15f8119748e51432bb07..90b28a5c8b9a4ab9c96a98bbb7cc85b6bea201b8 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -390,7 +390,9 @@ public:
bool operator!=(const ComputedStyle& other) const { return !(*this == other); }
bool isFloating() const { return noninherited_flags.floating != NoFloat; }
bool hasMargin() const { return surround->margin.nonZero(); }
+ bool hasBorderFill() const { return surround->border.hasBorderFill(); }
bool hasBorder() const { return surround->border.hasBorder(); }
+ bool hasBorderDecoration() const { return hasBorder() || hasBorderFill(); }
bool hasPadding() const { return surround->padding.nonZero(); }
bool hasMarginBeforeQuirk() const { return marginBefore().quirk(); }
bool hasMarginAfterQuirk() const { return marginAfter().quirk(); }
@@ -1512,7 +1514,7 @@ public:
bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyInheritedProperties(); }
void copyChildDependentFlagsFrom(const ComputedStyle&);
- bool hasBoxDecorations() const { return hasBorder() || hasBorderRadius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resize() != RESIZE_NONE; }
+ bool hasBoxDecorations() const { return hasBorderDecoration() || hasBorderRadius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resize() != RESIZE_NONE; }
bool borderObscuresBackground() const;
void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
« no previous file with comments | « Source/core/style/BorderData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698