Index: Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp b/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp |
index 70649751ef792a9ab85c0bf235e44dfea68328c4..96196273617320ad4307c36d883ebf5b41ffb0b9 100644 |
--- a/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp |
+++ b/Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp |
@@ -117,18 +117,19 @@ static CSSPropertyInfo* cssPropertyInfo(v8::Handle<v8::String> v8PropertyName) |
unsigned i = 0; |
- if (hasCSSPropertyNamePrefix(propertyName, "css")) |
+ if (hasCSSPropertyNamePrefix(propertyName, "css")) { |
i += 3; |
- else if (hasCSSPropertyNamePrefix(propertyName, "pixel")) { |
+ } else if (hasCSSPropertyNamePrefix(propertyName, "pixel")) { |
i += 5; |
hadPixelOrPosPrefix = true; |
} else if (hasCSSPropertyNamePrefix(propertyName, "pos")) { |
i += 3; |
hadPixelOrPosPrefix = true; |
- } else if (hasCSSPropertyNamePrefix(propertyName, "webkit")) |
+ } else if (hasCSSPropertyNamePrefix(propertyName, "webkit")) { |
builder.append('-'); |
- else if (isASCIIUpper(propertyName[0])) |
+ } else if (hasCSSPropertyNamePrefix(propertyName, "internal") || isASCIIUpper(propertyName[0])) { |
return 0; |
+ } |
builder.append(toASCIILower(propertyName[i++])); |
@@ -163,8 +164,11 @@ void V8CSSStyleDeclaration::namedPropertyEnumeratorCustom(const v8::PropertyCall |
if (propertyNames.isEmpty()) { |
for (int id = firstCSSProperty; id <= lastCSSProperty; ++id) { |
CSSPropertyID propertyId = static_cast<CSSPropertyID>(id); |
- if (RuntimeCSSEnabled::isCSSPropertyEnabled(propertyId)) |
- propertyNames.append(getJSPropertyName(propertyId)); |
+ if (RuntimeCSSEnabled::isCSSPropertyEnabled(propertyId)) { |
+ String propertyName = getJSPropertyName(propertyId); |
+ if (!hasCSSPropertyNamePrefix(propertyName, "internal")) |
+ propertyNames.append(propertyName); |
+ } |
} |
sort(propertyNames.begin(), propertyNames.end(), codePointCompareLessThan); |
propertyNamesLength = propertyNames.size(); |