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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp

Issue 2704933006: Expand FrameSeleciton::rootEditableElement() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T15:42:51 Created 3 years, 10 months 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
Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
index f82a1556d910cbb48df6375030a969108819d13e..9d46ca37d3a11f8539e6c58289b761a6d2c646e4 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -1918,7 +1918,9 @@ static bool enabledInRichlyEditableText(LocalFrame& frame,
frame.selection()
.computeVisibleSelectionInDOMTreeDeprecated()
.isContentRichlyEditable() &&
- frame.selection().rootEditableElement();
+ frame.selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .rootEditableElement();
}
static bool enabledPaste(LocalFrame& frame,

Powered by Google App Engine
This is Rietveld 408576698