mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
dom: Use pref macro for IDL conditional guards.
This commit is contained in:
parent
714acb942c
commit
aa80f91399
38 changed files with 8 additions and 109 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue