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

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

Issue 2704123003: Expand FrameSeleciton::isCaret() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T12:50:46 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 7587722432c4d74d6a6b3aefb67630bd90c3e756..d8269f7e129bd1f6795522e8566165ee9494ebc3 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -415,7 +415,7 @@ static bool hasChildTags(Element& element, const QualifiedName& tagName) {
static TriState selectionListState(const FrameSelection& selection,
const QualifiedName& tagName) {
- if (selection.isCaret()) {
+ if (selection.computeVisibleSelectionInDOMTreeDeprecated().isCaret()) {
if (enclosingElementWithTag(
selection.computeVisibleSelectionInDOMTreeDeprecated().start(),
tagName))

Powered by Google App Engine
This is Rietveld 408576698