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

Unified Diff: third_party/WebKit/Source/core/style/BorderData.h

Issue 2836143003: Invalidate border/outline on color change only if they use current color (Closed)
Patch Set: rebaselined Created 3 years, 8 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/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)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698