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

Unified Diff: Source/devtools/front_end/ui/DOMExtension.js

Issue 466703002: DevTools: get rid of Element.prototype.removeMatchingStyleClasses (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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: Source/devtools/front_end/ui/DOMExtension.js
diff --git a/Source/devtools/front_end/ui/DOMExtension.js b/Source/devtools/front_end/ui/DOMExtension.js
index e054e3bb035fc5262b4e6630f286bf849306e933..822d083d90ea82ed287c18e710b139c8522e5f8f 100644
--- a/Source/devtools/front_end/ui/DOMExtension.js
+++ b/Source/devtools/front_end/ui/DOMExtension.js
@@ -156,13 +156,6 @@ Node.prototype.rangeBoundaryForOffset = function(offset)
return { container: node, offset: offset };
}
-Element.prototype.removeMatchingStyleClasses = function(classNameRegex)
-{
- var regex = new RegExp("(^|\\s+)" + classNameRegex + "($|\\s+)");
- if (regex.test(this.className))
- this.className = this.className.replace(regex, " ");
-}
-
/**
* @param {number|undefined} x
* @param {number|undefined} y

Powered by Google App Engine
This is Rietveld 408576698