Lines Matching refs:propertyName

68 static bool hasCSSPropertyNamePrefix(const Identifier& propertyName, const char* prefix)
74 ASSERT(propertyName.length());
77 if (toASCIILower(propertyName.characters()[0]) != prefix[0])
80 unsigned length = propertyName.length();
83 return isASCIIUpper(propertyName.characters()[i]);
84 if (propertyName.characters()[i] != prefix[i])
90 static String cssPropertyName(const Identifier& propertyName, bool* hadPixelOrPosPrefix = 0)
95 unsigned length = propertyName.length();
104 if (hasCSSPropertyNamePrefix(propertyName, "css"))
106 else if (hasCSSPropertyNamePrefix(propertyName, "pixel")) {
110 } else if (hasCSSPropertyNamePrefix(propertyName, "pos")) {
114 } else if (hasCSSPropertyNamePrefix(propertyName, "webkit")
115 || hasCSSPropertyNamePrefix(propertyName, "khtml")
116 || hasCSSPropertyNamePrefix(propertyName, "apple"))
119 if (isASCIIUpper(propertyName.characters()[0]))
123 builder.append(toASCIILower(propertyName.characters()[i++]));
126 UChar c = propertyName.characters()[i];
143 bool JSCSSStyleDeclaration::canGetItemsForName(ExecState*, CSSStyleDeclaration*, const Identifier& propertyName)
145 return isCSSPropertyName(propertyName);
150 JSValue JSCSSStyleDeclaration::nameGetter(ExecState* exec, JSValue slotBase, const Identifier& propertyName)
160 String prop = cssPropertyName(propertyName, &pixelOrPos);
172 if (propertyName == "filter")
179 bool JSCSSStyleDeclaration::putDelegate(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot&)
182 String prop = cssPropertyName(propertyName, &pixelOrPos);