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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.cpp

Issue 2709503003: Expand FrameSeleciton::isContentEditable() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T08:13:55 rebase 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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 7a0fa9a8dbdd5f6af3258dc8d58393e55bcee9a1..88a3e07d11bb1e6318cdcc3eb4229be22342f631 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -630,7 +630,7 @@ void FrameSelection::selectAll() {
Node* root = nullptr;
Node* selectStartTarget = nullptr;
- if (isContentEditable()) {
+ if (computeVisibleSelectionInDOMTreeDeprecated().isContentEditable()) {
root = highestEditableRoot(
computeVisibleSelectionInDOMTreeDeprecated().start());
if (Node* shadowRoot = nonBoundaryShadowTreeRootNode(

Powered by Google App Engine
This is Rietveld 408576698