dom: Use pref macro for IDL conditional guards.

This commit is contained in:
Josh Matthews 2020-07-09 20:01:01 -04:00
parent 714acb942c
commit aa80f91399
38 changed files with 8 additions and 109 deletions

View file

@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#textmetrics
[Exposed=(PaintWorklet, Window, Worker), Pref="dom.canvas-text.enabled"]
[Exposed=(PaintWorklet, Window, Worker), Pref="dom.canvas_text.enabled"]
interface TextMetrics {
// x-direction
readonly attribute double width; // advance width