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

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

Issue 23581008: Revert r154797: "Move isValid/isCurrentColor from Color to StyleColor" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 48347801c2e15ab6b465659a74393b69fa0e255b..9df3e41bfbfe8aa7bb3ced0894763d60a53cb095 100644
--- a/Source/core/inspector/InspectorFrontendHost.cpp
+++ b/Source/core/inspector/InspectorFrontendHost.cpp
@@ -282,13 +282,13 @@ String InspectorFrontendHost::loadResourceSynchronously(const String& url)
String InspectorFrontendHost::getSelectionBackgroundColor()
{
Color color = RenderTheme::theme().activeSelectionBackgroundColor();
- return color != Color::transparent ? color.serialized() : "";
+ return color.isValid() ? color.serialized() : "";
}
String InspectorFrontendHost::getSelectionForegroundColor()
{
Color color = RenderTheme::theme().activeSelectionForegroundColor();
- return color != Color::transparent ? color.serialized() : "";
+ return color.isValid() ? color.serialized() : "";
}
bool InspectorFrontendHost::supportsFileSystems()

Powered by Google App Engine
This is Rietveld 408576698