Index: Source/core/layout/LayoutObject.cpp |
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
index f67bca0631ff94563576be00bda7d018b589c77a..bb26b0951350af443866f0199d4fcd4953e8e676 100644 |
--- a/Source/core/layout/LayoutObject.cpp |
+++ b/Source/core/layout/LayoutObject.cpp |
@@ -1603,7 +1603,7 @@ Color LayoutObject::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 (!isSelectable() || (gGlobalPaintFlags & GlobalPaintSelectionOnly)) |
return resolveColor(colorProperty); |
if (RefPtr<ComputedStyle> pseudoStyle = getUncachedPseudoStyleFromParentOrShadowHost()) |