Bug 1241021 part 2: Make GenerateCSS2PropertiesWebIDL.py produce capitalized as well as uncapitalized WebkitFoo/webkitFoo DOM style accessors. r=bz

This commit is contained in:
Daniel Holbert 2016-02-03 20:17:45 -08:00
Родитель 7555a4a195
Коммит 842b5dc8ae
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -21,6 +21,12 @@ for [name, prop, id, flags, pref, proptype] in propList:
extendedAttrs = ["Throws", "TreatNullAs=EmptyString"]
if pref is not "":
extendedAttrs.append('Pref="%s"' % pref)
# webkit properties get a capitalized "WebkitFoo" accessor (added here)
# as well as a camelcase "webkitFoo" accessor (added next).
if (prop.startswith("Webkit")):
props += generateLine(prop, extendedAttrs)
# Generate a line with camelCase spelling of property-name (or capitalized,
# for Moz-prefixed properties):
if not prop.startswith("Moz"):