dom/smil/test/db_smilCSSPropertyList.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set ts=2 sw=2 sts=2 et: */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 /* list of CSS properties recognized by SVG 1.1 spec, for use in mochitests */
michael@0 8
michael@0 9 // List of CSS Properties from SVG 1.1 Specification, Appendix N
michael@0 10 var gPropList =
michael@0 11 {
michael@0 12 // NOTE: AnimatedAttribute signature is:
michael@0 13 // (attrName, attrType, sampleTarget, isAnimatable, isAdditive)
michael@0 14
michael@0 15 // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla
michael@0 16 // SKIP 'baseline-shift' property: animatable but not supported by Mozilla
michael@0 17 clip: new AdditiveAttribute("clip", "CSS", "marker"),
michael@0 18 clip_path: new NonAdditiveAttribute("clip-path", "CSS", "rect"),
michael@0 19 clip_rule: new NonAdditiveAttribute("clip-rule", "CSS", "circle"),
michael@0 20 color: new AdditiveAttribute("color", "CSS", "rect"),
michael@0 21 color_interpolation:
michael@0 22 new NonAdditiveAttribute("color-interpolation", "CSS", "rect"),
michael@0 23 color_interpolation_filters:
michael@0 24 new NonAdditiveAttribute("color-interpolation-filters", "CSS",
michael@0 25 "feFlood"),
michael@0 26 // SKIP 'color-profile' property: animatable but not supported by Mozilla
michael@0 27 // SKIP 'color-rendering' property: animatable but not supported by Mozilla
michael@0 28 cursor: new NonAdditiveAttribute("cursor", "CSS", "rect"),
michael@0 29 direction: new NonAnimatableAttribute("direction", "CSS", "text"),
michael@0 30 display: new NonAdditiveAttribute("display", "CSS", "rect"),
michael@0 31 dominant_baseline:
michael@0 32 new NonAdditiveAttribute("dominant-baseline", "CSS", "text"),
michael@0 33 enable_background:
michael@0 34 // NOTE: Not supported by Mozilla, but explicitly non-animatable
michael@0 35 new NonAnimatableAttribute("enable-background", "CSS", "marker"),
michael@0 36 fill: new AdditiveAttribute("fill", "CSS", "rect"),
michael@0 37 fill_opacity: new AdditiveAttribute("fill-opacity", "CSS", "rect"),
michael@0 38 fill_rule: new NonAdditiveAttribute("fill-rule", "CSS", "rect"),
michael@0 39 filter: new NonAdditiveAttribute("filter", "CSS", "rect"),
michael@0 40 flood_color: new AdditiveAttribute("flood-color", "CSS", "feFlood"),
michael@0 41 flood_opacity: new AdditiveAttribute("flood-opacity", "CSS", "feFlood"),
michael@0 42 font: new NonAdditiveAttribute("font", "CSS", "text"),
michael@0 43 font_family: new NonAdditiveAttribute("font-family", "CSS", "text"),
michael@0 44 font_size: new AdditiveAttribute("font-size", "CSS", "text"),
michael@0 45 font_size_adjust:
michael@0 46 new NonAdditiveAttribute("font-size-adjust", "CSS", "text"),
michael@0 47 font_stretch: new NonAdditiveAttribute("font-stretch", "CSS", "text"),
michael@0 48 font_style: new NonAdditiveAttribute("font-style", "CSS", "text"),
michael@0 49 font_variant: new NonAdditiveAttribute("font-variant", "CSS", "text"),
michael@0 50 // XXXdholbert should 'font-weight' be additive?
michael@0 51 font_weight: new NonAdditiveAttribute("font-weight", "CSS", "text"),
michael@0 52 glyph_orientation_horizontal:
michael@0 53 // NOTE: Not supported by Mozilla, but explicitly non-animatable
michael@0 54 NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
michael@0 55 glyph_orientation_vertical:
michael@0 56 // NOTE: Not supported by Mozilla, but explicitly non-animatable
michael@0 57 NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
michael@0 58 image_rendering:
michael@0 59 NonAdditiveAttribute("image-rendering", "CSS", "image"),
michael@0 60 // SKIP 'kerning' property: animatable but not supported by Mozilla
michael@0 61 letter_spacing: new AdditiveAttribute("letter-spacing", "CSS", "text"),
michael@0 62 lighting_color:
michael@0 63 new AdditiveAttribute("lighting-color", "CSS", "feDiffuseLighting"),
michael@0 64 marker: new NonAdditiveAttribute("marker", "CSS", "line"),
michael@0 65 marker_end: new NonAdditiveAttribute("marker-end", "CSS", "line"),
michael@0 66 marker_mid: new NonAdditiveAttribute("marker-mid", "CSS", "line"),
michael@0 67 marker_start: new NonAdditiveAttribute("marker-start", "CSS", "line"),
michael@0 68 mask: new NonAdditiveAttribute("mask", "CSS", "line"),
michael@0 69 opacity: new AdditiveAttribute("opacity", "CSS", "rect"),
michael@0 70 overflow: new NonAdditiveAttribute("overflow", "CSS", "marker"),
michael@0 71 pointer_events: new NonAdditiveAttribute("pointer-events", "CSS", "rect"),
michael@0 72 shape_rendering: new NonAdditiveAttribute("shape-rendering", "CSS", "rect"),
michael@0 73 stop_color: new AdditiveAttribute("stop-color", "CSS", "stop"),
michael@0 74 stop_opacity: new AdditiveAttribute("stop-opacity", "CSS", "stop"),
michael@0 75 stroke: new AdditiveAttribute("stroke", "CSS", "rect"),
michael@0 76 stroke_dasharray: new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"),
michael@0 77 stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"),
michael@0 78 stroke_linecap: new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"),
michael@0 79 stroke_linejoin: new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"),
michael@0 80 stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"),
michael@0 81 stroke_opacity: new AdditiveAttribute("stroke-opacity", "CSS", "rect"),
michael@0 82 stroke_width: new AdditiveAttribute("stroke-width", "CSS", "rect"),
michael@0 83 text_anchor: new NonAdditiveAttribute("text-anchor", "CSS", "text"),
michael@0 84 text_decoration: new NonAdditiveAttribute("text-decoration", "CSS", "text"),
michael@0 85 text_rendering: new NonAdditiveAttribute("text-rendering", "CSS", "text"),
michael@0 86 unicode_bidi: new NonAnimatableAttribute("unicode-bidi", "CSS", "text"),
michael@0 87 vector_effect: new NonAdditiveAttribute("vector-effect", "CSS", "rect"),
michael@0 88 visibility: new NonAdditiveAttribute("visibility", "CSS", "rect"),
michael@0 89 word_spacing: new AdditiveAttribute("word-spacing", "CSS", "text"),
michael@0 90 writing_mode:
michael@0 91 // NOTE: Not supported by Mozilla, but explicitly non-animatable
michael@0 92 new NonAnimatableAttribute("writing-mode", "CSS", "text"),
michael@0 93 };

mercurial