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

Unified Diff: sky/engine/core/rendering/RenderObject.cpp

Issue 772473004: Get rid of PaintBehaviorSelectionOnly. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderObject.cpp
diff --git a/sky/engine/core/rendering/RenderObject.cpp b/sky/engine/core/rendering/RenderObject.cpp
index 5d3f23e502468025c7c66f96a86ebb27eb5ca426..df6bb399e5e2e28bc856964604d6704080fec855 100644
--- a/sky/engine/core/rendering/RenderObject.cpp
+++ b/sky/engine/core/rendering/RenderObject.cpp
@@ -1587,9 +1587,9 @@ Color RenderObject::selectionBackgroundColor() const
Color RenderObject::selectionColor(int colorProperty) const
{
- // If the element is unselectable, or we are only painting the selection,
- // don't override the foreground color with the selection foreground color.
- if (!isSelectable() || (frame()->view()->paintBehavior() & PaintBehaviorSelectionOnly))
+ // If the element is unselectable, don't override the foreground
+ // color with the selection foreground color.
+ if (!isSelectable())
return resolveColor(colorProperty);
if (!RenderTheme::theme().supportsSelectionForegroundColors())
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698