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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

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: 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/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index d911c98bb50e6b5b22966e5e5128dac3fec68c64..927c8ada2f99fdfe32eb7a59ef1ca4bb39f5aca1 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -416,9 +416,6 @@ public:
// must be recognized as inert to prevent text selection.
bool isInert() const;
- bool isContentEditable() const;
- bool isContentRichlyEditable() const;
-
bool hasEditableStyle(EditableType = ContentIsEditable) const;
bool layoutObjectIsRichlyEditable(EditableType = ContentIsEditable) const;
@@ -864,6 +861,8 @@ inline ScriptWrappable* ScriptWrappable::fromNode(Node* node)
CORE_EXPORT bool isRootEditableElement(const Node&);
CORE_EXPORT Element* rootEditableElement(const Node&);
CORE_EXPORT Element* rootEditableElement(const Node&, EditableType);
+CORE_EXPORT bool isContentEditable(const Node&);
+CORE_EXPORT bool isContentRichlyEditable(const Node&);
// Allow equality comparisons of Nodes by reference or pointer, interchangeably.
DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Node)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | third_party/WebKit/Source/core/html/HTMLElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698