commit | 71519f8efbed1d60adb03dea112ccdce6a9175ff | [log] [tgz] |
---|---|---|
author | Jack Franklin <[email protected]> | Tue Nov 03 12:08:59 2020 |
committer | Commit Bot <[email protected]> | Tue Nov 03 14:11:46 2020 |
tree | 0a0567915fa1fc1f58e39c0e84de0c7e21bfc4ef | |
parent | 2943c1a14bd0ffc03a2c0b323c8da1ebe1a264e5 [diff] [blame] |
Introduce enableLegacyPatching flag for CSS patching As part of the dark mode migration we are adding `enableLegacyPatching:true` to all call sites of `appendStyle` (and related methods). If a user passes `false` for that flag, no CSS colour patching will occur. This CL is therefore a no-op from a user's perspective as we pass `true` on every call to maintain existing behaviour, but once we start migrating we will turn the option to `false`. Long term, once all code is migrated and the old patching is removed, we will remove this flag entirely once again. Bug: 1122511 Change-Id: I76b818e83b7d5ee0175e1548759373f53481e0ab No-Presubmit: True Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2516345 Commit-Queue: Jack Franklin <[email protected]> Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/accessibility/AccessibilityNodeView.js b/front_end/accessibility/AccessibilityNodeView.js index 26e7c2c..97b2029 100644 --- a/front_end/accessibility/AccessibilityNodeView.js +++ b/front_end/accessibility/AccessibilityNodeView.js
@@ -33,7 +33,7 @@ this._ignoredReasonsTree = this.createTreeOutline(); this.element.classList.add('accessibility-computed'); - this.registerRequiredCSS('accessibility/accessibilityNode.css'); + this.registerRequiredCSS('accessibility/accessibilityNode.css', {enableLegacyPatching: true}); this._treeOutline.setFocusable(true); }