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

Unified Diff: third_party/WebKit/Source/core/page/TouchAdjustment.cpp

Issue 2121313003: [Editing][DOM][CodeHealth] Make Node::isContentEditable and Node::isRichEditable global functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/page/TouchAdjustment.cpp
diff --git a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
index 57c1e3c8d52c8962da65314cc90df1777a3ce9f0..f2d31df84715ba34ddf834812da3b11d37b5eb46 100644
--- a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
+++ b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
@@ -116,7 +116,7 @@ bool providesContextMenuItems(Node* node)
ASSERT(node->layoutObject() || node->isShadowRoot());
if (!node->layoutObject())
return false;
- if (node->isContentEditable())
+ if (isContentEditable(*node))
return true;
if (node->isLink())
return true;
@@ -298,10 +298,10 @@ void compileSubtargetList(const HeapVector<Member<Node>>& intersectedNodes, Subt
// Consolidate bounds for editable content.
if (editableAncestors.contains(candidate))
continue;
- if (candidate->isContentEditable()) {
+ if (isContentEditable(*candidate)) {
Node* replacement = candidate;
Node* parent = candidate->parentOrShadowHostNode();
- while (parent && parent->isContentEditable()) {
+ while (parent && isContentEditable(*parent)) {
replacement = parent;
if (editableAncestors.contains(replacement)) {
replacement = nullptr;

Powered by Google App Engine
This is Rietveld 408576698