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

Unified Diff: Source/core/inspector/InspectorFrontendHost.cpp

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/inspector/InspectorFrontendHost.cpp
diff --git a/Source/core/inspector/InspectorFrontendHost.cpp b/Source/core/inspector/InspectorFrontendHost.cpp
index f914a142788087d924509967fbc975ee6761a0fe..770fbcc3893fabac1bd500180477f80c4e5d973d 100644
--- a/Source/core/inspector/InspectorFrontendHost.cpp
+++ b/Source/core/inspector/InspectorFrontendHost.cpp
@@ -276,13 +276,13 @@ String InspectorFrontendHost::loadResourceSynchronously(const String& url)
String InspectorFrontendHost::getSelectionBackgroundColor()
{
Color color = m_frontendPage->theme()->activeSelectionBackgroundColor();
- return color.isValid() ? color.serialized() : "";
+ return color != Color::transparent ? color.serialized() : "";
}
String InspectorFrontendHost::getSelectionForegroundColor()
{
Color color = m_frontendPage->theme()->activeSelectionForegroundColor();
- return color.isValid() ? color.serialized() : "";
+ return color != Color::transparent ? color.serialized() : "";
}
bool InspectorFrontendHost::supportsFileSystems()

Powered by Google App Engine
This is Rietveld 408576698