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

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

Issue 2876973003: Rename *Focus*-methods of FrameSelection to clarify its public API (Closed)
Patch Set: Created 3 years, 7 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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 408cf6095e6526c6088898f9980f11c49516ef72..434d22e4793cce2c30461e81c68800452dcbc786 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1403,7 +1403,7 @@ Color LayoutObject::SelectionBackgroundColor() const {
if (RefPtr<ComputedStyle> pseudo_style = GetUncachedSelectionStyle())
return ResolveColor(*pseudo_style, CSSPropertyBackgroundColor)
.BlendWithWhite();
- return GetFrame()->Selection().IsFocusedAndActive()
+ return GetFrame()->Selection().FrameIsFocusedAndActive()
? LayoutTheme::GetTheme().ActiveSelectionBackgroundColor()
: LayoutTheme::GetTheme().InactiveSelectionBackgroundColor();
}
@@ -1420,7 +1420,7 @@ Color LayoutObject::SelectionColor(
return ResolveColor(*pseudo_style, color_property);
if (!LayoutTheme::GetTheme().SupportsSelectionForegroundColors())
return ResolveColor(color_property);
- return GetFrame()->Selection().IsFocusedAndActive()
+ return GetFrame()->Selection().FrameIsFocusedAndActive()
? LayoutTheme::GetTheme().ActiveSelectionForegroundColor()
: LayoutTheme::GetTheme().InactiveSelectionForegroundColor();
}

Powered by Google App Engine
This is Rietveld 408576698