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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 2179273003: Implement spec-compliant HTMLElement.prototype.isContentEditable (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/editing/EditingUtilities.h
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.h b/third_party/WebKit/Source/core/editing/EditingUtilities.h
index 558b274897baf02a12ca73ae04cbe3b9f0cf1ef3..dba406f48f9747aedcc78b2d393b9fb7dfb32053 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.h
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.h
@@ -72,6 +72,16 @@ CORE_EXPORT bool needsLayoutTreeUpdate(const Position&);
// Node
// -------------------------------------------------------------------------
+// Style-independent editability. These functions are useless in Blink editing
+// code.
+
+// https://w3c.github.io/editing/execCommand.html#editing-host
+bool isEditingHost(const Node&);
yosin_UTC9 2016/07/27 01:34:36 Could you rename |isEditingHost()| or |isEditable(
+// https://w3c.github.io/editing/execCommand.html#editable
+bool isEditable(const Node&);
+
+// Style-dependent editability
+
CORE_EXPORT bool isContentEditable(const Node&);
CORE_EXPORT bool isContentRichlyEditable(const Node&);
CORE_EXPORT bool hasEditableStyle(const Node&, EditableType = ContentIsEditable);

Powered by Google App Engine
This is Rietveld 408576698