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

Unified Diff: third_party/WebKit/Source/core/html/HTMLElement.cpp

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/html/HTMLElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLElement.cpp b/third_party/WebKit/Source/core/html/HTMLElement.cpp
index 109e8b45a3b0c2aa45eade29c6a8d508673ddd28..c0169f6f702897f29d1fb2bc83544457591593a9 100644
--- a/third_party/WebKit/Source/core/html/HTMLElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLElement.cpp
@@ -587,9 +587,9 @@ void HTMLElement::setContentEditable(const String& enabled, ExceptionState& exce
exceptionState.throwDOMException(SyntaxError, "The value provided ('" + enabled + "') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.");
}
-bool HTMLElement::isContentEditable() const
+bool HTMLElement::isContentEditableForBinding() const
{
- return blink::isContentEditable(*this);
+ return isEditingHost(*this) || isEditable(*this);
}
bool HTMLElement::draggable() const

Powered by Google App Engine
This is Rietveld 408576698