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: sky/engine/core/html/HTMLElement.cpp

Issue 696903002: Remove a lot of API surface from Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « sky/engine/core/html/HTMLElement.h ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLElement.cpp
diff --git a/sky/engine/core/html/HTMLElement.cpp b/sky/engine/core/html/HTMLElement.cpp
index 81da447a4205885fcdb273cb31fbcd529d251ac4..7d1775513da006ea98440275e2c44b8fc5418c39 100644
--- a/sky/engine/core/html/HTMLElement.cpp
+++ b/sky/engine/core/html/HTMLElement.cpp
@@ -135,26 +135,6 @@ bool HTMLElement::isInteractiveContent() const
return false;
}
-bool HTMLElement::matchesReadOnlyPseudoClass() const
-{
- return !matchesReadWritePseudoClass();
-}
-
-bool HTMLElement::matchesReadWritePseudoClass() const
-{
- if (hasAttribute(HTMLNames::contenteditableAttr)) {
- const AtomicString& value = getAttribute(HTMLNames::contenteditableAttr);
-
- if (value.isEmpty() || equalIgnoringCase(value, "true") || equalIgnoringCase(value, "plaintext-only"))
- return true;
- if (equalIgnoringCase(value, "false"))
- return false;
- // All other values should be treated as "inherit".
- }
-
- return parentElement() && parentElement()->hasEditableStyle();
-}
-
const AtomicString& HTMLElement::eventParameterName()
{
DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString::ConstructFromLiteral));
« no previous file with comments | « sky/engine/core/html/HTMLElement.h ('k') | sky/engine/core/html/parser/HTMLConstructionSite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698