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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12091005: Revert "Adding supported checks for Element.matches." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index c216a0f656f03c4931dcab29e84ea0e492b4dc94..ab44ba1a2a14556db9678521e1f0da7e1bca0dba 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -8810,18 +8810,7 @@ abstract class Element extends Node implements ElementTraversal native "*Element
/**
* Checks if this element matches the CSS selectors.
- *
- * Use [supportsMatches] to check if this is supported on the current
- * platform.
- *
- * See also:
- *
- * * [supportsMatches]
*/
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.SAFARI)
@Experimental
bool matches(String selectors) {
if (JS('bool', '!!#.matches', this)) {
@@ -8836,19 +8825,6 @@ abstract class Element extends Node implements ElementTraversal native "*Element
throw new UnsupportedError("Not supported on this platform");
}
- /**
- * Checks if the matches function is supported on the current platform.
- *
- * See also:
- *
- * * [matches]
- */
- static bool get supportsMatches {
- var e = new DivElement();
- return JS('bool', '!!(#.matches || #.webkitMatchesSelector || '
- '#.mozMatchesSelector || #.msMatchesSelector)', e, e, e, e);
- }
-
@DomName('Element.abort')
@DocsEditable
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698