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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 2932913002: Move spellcheck underline colors into LayoutTheme (Closed)
Patch Set: Fix Mac build Created 3 years, 6 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: third_party/WebKit/Source/core/layout/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index 17d1f9a9bd35c89eee5eb665dd04a749704a2d0c..b7e6e6924856b15c921ae2fe694107c8fe5dde6e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -332,6 +332,14 @@ Color LayoutTheme::InactiveListBoxSelectionForegroundColor() const {
return PlatformInactiveListBoxSelectionForegroundColor();
}
+Color LayoutTheme::SpellingMarkerUnderlineColor() const {
+ return PlatformSpellingMarkerUnderlineColor();
+}
+
+Color LayoutTheme::GrammarMarkerUnderlineColor() const {
+ return PlatformGrammarMarkerUnderlineColor();
+}
+
Color LayoutTheme::PlatformActiveSelectionBackgroundColor() const {
// Use a blue color by default if the platform theme doesn't define anything.
return Color(0, 0, 255);
@@ -369,6 +377,14 @@ Color LayoutTheme::PlatformInactiveListBoxSelectionForegroundColor() const {
return PlatformInactiveSelectionForegroundColor();
}
+Color LayoutTheme::PlatformSpellingMarkerUnderlineColor() const {
+ return Color(255, 0, 0);
+}
+
+Color LayoutTheme::PlatformGrammarMarkerUnderlineColor() const {
+ return Color(192, 192, 192);
+}
+
int LayoutTheme::BaselinePosition(const LayoutObject* o) const {
if (!o->IsBox())
return 0;

Powered by Google App Engine
This is Rietveld 408576698