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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.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/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 840807efafc28841032b7312a96c91a507dffabf..fd24d447c3ba1ddc8fb923245beaf23a4ec3b277 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -2953,6 +2953,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
bool HasBorder() const { return Border().HasBorder(); }
bool HasBorderDecoration() const { return HasBorder() || HasBorderFill(); }
bool HasBorderRadius() const { return Border().HasBorderRadius(); }
+ bool HasBorderColorReferencingCurrentColor() const {
+ return Border().HasBorderColorReferencingCurrentColor();
+ }
void ResetBorder() {
ResetBorderImage();
@@ -3044,6 +3047,9 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
int OutlineOutsetExtent() const;
float GetOutlineStrokeWidthForFocusRing() const;
+ bool HasOutlineWithCurrentColor() const {
+ return HasOutline() && OutlineColor().IsCurrentColor();
+ }
// Position utility functions.
bool HasOutOfFlowPosition() const {
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderData.h ('k') | third_party/WebKit/Source/core/style/ComputedStyleTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698