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

Unified Diff: third_party/WebKit/Source/core/dom/TextLinkColors.cpp

Issue 1377943005: Change StyleBuilderConverter functions to take const CSSValue&s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@style_map_references
Patch Set: Rebase Created 5 years, 2 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 | « third_party/WebKit/Source/core/dom/TextLinkColors.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/TextLinkColors.cpp
diff --git a/third_party/WebKit/Source/core/dom/TextLinkColors.cpp b/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
index 64ad2c09e412215b9680c87a13f6eff8a60ae76c..06f62ac8cc7594b46e08be6db4aab465338dd797 100644
--- a/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
+++ b/third_party/WebKit/Source/core/dom/TextLinkColors.cpp
@@ -58,12 +58,12 @@ void TextLinkColors::resetActiveLinkColor()
m_activeLinkColor = Color(255, 0, 0);
}
-Color TextLinkColors::colorFromPrimitiveValue(const CSSPrimitiveValue* value, Color currentColor, bool forVisitedLink) const
+Color TextLinkColors::colorFromPrimitiveValue(const CSSPrimitiveValue& value, Color currentColor, bool forVisitedLink) const
{
- if (value->isRGBColor())
- return Color(value->getRGBA32Value());
+ if (value.isRGBColor())
+ return Color(value.getRGBA32Value());
- CSSValueID valueID = value->getValueID();
+ CSSValueID valueID = value.getValueID();
switch (valueID) {
case 0:
return Color();
« no previous file with comments | « third_party/WebKit/Source/core/dom/TextLinkColors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698