зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7555a4a195
Коммит
842b5dc8ae
|
@ -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"):
|
||||
|
|
Загрузка…
Ссылка в новой задаче