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 640ef906d0bcba14e48e5c56267935d6899ce6ed..b39784ef1a8e5888d2cff83112a9a0b26e4b3348 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -795,7 +795,7 @@ void FrameSelection::selectFrameElementInParentIfFullySelected() |
return; |
// This method's purpose is it to make it easier to select iframes (in order to delete them). Don't do anything if the iframe isn't deletable. |
- if (!ownerElementParent->hasEditableStyle()) |
+ if (!blink::hasEditableStyle(*ownerElementParent)) |
return; |
// Create compute positions before and after the element. |
@@ -1185,7 +1185,7 @@ void FrameSelection::setSelectionFromNone() |
Document* document = m_frame->document(); |
bool caretBrowsing = m_frame->settings() && m_frame->settings()->caretBrowsingEnabled(); |
- if (!isNone() || !(document->hasEditableStyle() || caretBrowsing)) |
+ if (!isNone() || !(blink::hasEditableStyle(*document) || caretBrowsing)) |
return; |
Element* documentElement = document->documentElement(); |