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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.cpp

Issue 2931893002: More precise use of multiline state (Closed)
Patch Set: Rebase Created 3 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/modules/accessibility/AXObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
index 8a991938814dfc4e34e238e9bf31a03c04240a13..0ee10ae13347cfdbc6b23346b3831e905d272e6e 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.cpp
@@ -1162,24 +1162,6 @@ AXDefaultActionVerb AXObject::Action() const {
return AXDefaultActionVerb::kClick;
}
}
-
-bool AXObject::IsMultiline() const {
- Node* node = this->GetNode();
- if (!node)
- return false;
-
- if (isHTMLTextAreaElement(*node))
- return true;
-
- if (HasEditableStyle(*node))
- return true;
-
- if (!IsNativeTextControl() && !IsNonNativeTextControl())
- return false;
-
- return AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty::kMultiline);
-}
-
bool AXObject::AriaPressedIsPresent() const {
return !GetAttribute(aria_pressedAttr).IsEmpty();
}

Powered by Google App Engine
This is Rietveld 408576698