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

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

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (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
Index: Source/core/dom/TextLinkColors.h
diff --git a/Source/core/dom/TextLinkColors.h b/Source/core/dom/TextLinkColors.h
index 6d2728cf4c9d5a1f035bec2ee417e592d6d5533a..fb223e8968b0f94913b759c2cdc6a881384b5d07 100644
--- a/Source/core/dom/TextLinkColors.h
+++ b/Source/core/dom/TextLinkColors.h
@@ -28,7 +28,7 @@
#ifndef TextLinkColors_h
#define TextLinkColors_h
-#include "core/platform/graphics/Color.h"
+#include "core/css/StyleColor.h"
#include "wtf/Noncopyable.h"
namespace WebCore {
@@ -41,25 +41,25 @@ WTF_MAKE_NONCOPYABLE(TextLinkColors);
public:
TextLinkColors();
- void setTextColor(const Color& color) { m_textColor = color; }
- Color textColor() const { return m_textColor; }
+ void setTextColor(const StyleColor& color) { m_textColor = color; }
+ StyleColor textColor() const { return m_textColor; }
- const Color& linkColor() const { return m_linkColor; }
- const Color& visitedLinkColor() const { return m_visitedLinkColor; }
- const Color& activeLinkColor() const { return m_activeLinkColor; }
+ const StyleColor& linkColor() const { return m_linkColor; }
+ const StyleColor& visitedLinkColor() const { return m_visitedLinkColor; }
+ const StyleColor& activeLinkColor() const { return m_activeLinkColor; }
void setLinkColor(const Color& color) { m_linkColor = color; }
void setVisitedLinkColor(const Color& color) { m_visitedLinkColor = color; }
void setActiveLinkColor(const Color& color) { m_activeLinkColor = color; }
void resetLinkColor();
void resetVisitedLinkColor();
void resetActiveLinkColor();
- Color colorFromPrimitiveValue(const CSSPrimitiveValue*, Color currentColor, bool forVisitedLink = false) const;
+ StyleColor colorFromPrimitiveValue(const CSSPrimitiveValue*, bool forVisitedLink = false) const;
private:
- Color m_textColor;
- Color m_linkColor;
- Color m_visitedLinkColor;
- Color m_activeLinkColor;
+ StyleColor m_textColor;
+ StyleColor m_linkColor;
+ StyleColor m_visitedLinkColor;
+ StyleColor m_activeLinkColor;
};
}

Powered by Google App Engine
This is Rietveld 408576698