Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index c9b36bd01d5023b16afeb64d6665e010b690647d..340e436b914b14d9255fbfb7dcde72c2a93e1182 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -395,7 +395,7 @@ static bool removingNodeRemovesPosition(Node& node, const Position& position) |
return false; |
Element& element = toElement(node); |
- return element.containsIncludingShadowDOM(position.anchorNode()); |
+ return element.isShadowIncludingInclusiveAncestorOf(position.anchorNode()); |
} |
void FrameSelection::nodeWillBeRemoved(Node& node) |
@@ -1056,7 +1056,7 @@ bool FrameSelection::shouldBlinkCaret() const |
if (!focusedElement) |
return false; |
- return focusedElement->containsIncludingShadowDOM(selection().start().anchorNode()); |
+ return focusedElement->isShadowIncludingInclusiveAncestorOf(selection().start().anchorNode()); |
} |
void FrameSelection::caretBlinkTimerFired(Timer<FrameSelection>*) |