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

Unified Diff: third_party/WebKit/Source/core/css/StyleColor.cpp

Issue 2056593005: Move more helper methods out of CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: V2 Created 4 years, 6 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/css/StyleColor.cpp
diff --git a/third_party/WebKit/Source/core/css/StyleColor.cpp b/third_party/WebKit/Source/core/css/StyleColor.cpp
index da8c09a2bd31e76e6056e11391d30ca5c539662f..8954358415020b104658ff6394edc73a0bb3093a 100644
--- a/third_party/WebKit/Source/core/css/StyleColor.cpp
+++ b/third_party/WebKit/Source/core/css/StyleColor.cpp
@@ -46,4 +46,9 @@ bool StyleColor::isColorKeyword(CSSValueID id)
|| id == CSSValueMenu;
}
+bool StyleColor::isSystemColor(CSSValueID id)
+{
+ return (id >= CSSValueActiveborder && id <= CSSValueWindowtext) || id == CSSValueMenu;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleColor.h ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698