commit | f49e23286b4f17d318fcc6974e2381ee60245705 | [log] [tgz] |
---|---|---|
author | Tim van der Lippe <[email protected]> | Fri May 01 15:03:09 2020 |
committer | Commit Bot <[email protected]> | Fri May 01 16:54:52 2020 |
tree | b72e5bf4992799eeb211d3372e414923de1d8119 | |
parent | 6ab9f46701e69f47eedc86a5ab92f888b83f6361 [diff] [blame] |
Replace single class invocations of createElementWithClass This applies the following replacement to the codebase: (\S+) = createElementWithClass\('(\w+)', '([^'\s]+)'\); to $1 = document.createElement('$2');\n$1.classList.add('$3'); [email protected] No-Presubmit: true Bug: 1011811, 1077215 Change-Id: I0d76b39f1ed8cd4a44f18f94e398db934ba4b09c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2176112 Commit-Queue: Tim van der Lippe <[email protected]> Reviewed-by: Paul Lewis <[email protected]>
diff --git a/front_end/network/BlockedURLsPane.js b/front_end/network/BlockedURLsPane.js index b269d9cc..e981f2b 100644 --- a/front_end/network/BlockedURLsPane.js +++ b/front_end/network/BlockedURLsPane.js
@@ -85,7 +85,8 @@ */ renderItem(pattern, editable) { const count = this._blockedRequestsCount(pattern.url); - const element = createElementWithClass('div', 'blocked-url'); + const element = document.createElement('div'); + element.classList.add('blocked-url'); const checkbox = element.createChild('input', 'blocked-url-checkbox'); checkbox.type = 'checkbox'; checkbox.checked = pattern.enabled;