Index: third_party/WebKit/Source/core/style/BorderData.h |
diff --git a/third_party/WebKit/Source/core/style/BorderData.h b/third_party/WebKit/Source/core/style/BorderData.h |
index 03e386f9bd453a1836098297dd36b50557007994..f815eea223021c0ce8b8515449588e920d155e90 100644 |
--- a/third_party/WebKit/Source/core/style/BorderData.h |
+++ b/third_party/WebKit/Source/core/style/BorderData.h |
@@ -63,6 +63,13 @@ class BorderData { |
return false; |
} |
+ bool HasBorderColorReferencingCurrentColor() const { |
+ return (left_.NonZero() && left_.GetColor().IsCurrentColor()) || |
+ (right_.NonZero() && right_.GetColor().IsCurrentColor()) || |
+ (top_.NonZero() && top_.GetColor().IsCurrentColor()) || |
+ (bottom_.NonZero() && bottom_.GetColor().IsCurrentColor()); |
+ } |
+ |
float BorderLeftWidth() const { |
if (left_.Style() == kBorderStyleNone || |
left_.Style() == kBorderStyleHidden) |