| 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())
|
|
|