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

Unified Diff: Source/core/dom/TextLinkColors.h

Issue 18859010: Move colorFromPrimitiveValue from StyleResolverState to TextLinkColors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/css/resolver/StyleResolverState.cpp ('k') | Source/core/dom/TextLinkColors.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TextLinkColors.h
diff --git a/Source/core/dom/TextLinkColors.h b/Source/core/dom/TextLinkColors.h
index e64a67909929deb46f497594e0bf692ed11b04b8..6d2728cf4c9d5a1f035bec2ee417e592d6d5533a 100644
--- a/Source/core/dom/TextLinkColors.h
+++ b/Source/core/dom/TextLinkColors.h
@@ -33,6 +33,9 @@
namespace WebCore {
+class CSSPrimitiveValue;
+class Element;
+
class TextLinkColors {
WTF_MAKE_NONCOPYABLE(TextLinkColors);
public:
@@ -50,6 +53,7 @@ public:
void resetLinkColor();
void resetVisitedLinkColor();
void resetActiveLinkColor();
+ Color colorFromPrimitiveValue(const CSSPrimitiveValue*, Color currentColor, bool forVisitedLink = false) const;
private:
Color m_textColor;
« no previous file with comments | « Source/core/css/resolver/StyleResolverState.cpp ('k') | Source/core/dom/TextLinkColors.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698