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

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

Issue 221683005: Revert "Improve support for :read-only and :read-write pseudoclasses." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/html/HTMLElement.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.cpp
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
index 57cd08514ec9b1a293ebb29528433b9bfd21a2e2..d1de67857906b24273d2485af849517d386a1ad6 100644
--- a/Source/core/html/HTMLElement.cpp
+++ b/Source/core/html/HTMLElement.cpp
@@ -921,25 +921,6 @@ void HTMLElement::defaultEventHandler(Event* event)
Element::defaultEventHandler(event);
}
-bool HTMLElement::matchesReadOnlyPseudoClass() const
-{
- return !matchesReadWritePseudoClass();
-}
-
-bool HTMLElement::matchesReadWritePseudoClass() const
-{
- const AtomicString& value = fastGetAttribute(contenteditableAttr);
- if (!value.isNull()) {
- 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()->rendererIsEditable();
-}
-
void HTMLElement::handleKeypressEvent(KeyboardEvent* event)
{
if (!document().settings() || !document().settings()->spatialNavigationEnabled() || !supportsFocus())
« no previous file with comments | « Source/core/html/HTMLElement.h ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698