static CSSValue* parseSimpleTransform(CSSPropertyID propertyID, const String& string) { ASSERT(!string.isEmpty()); if (propertyID != CSSPropertyTransform) return nullptr; if (string.is8Bit()) return parseSimpleTransformList(string.characters8(), string.length()); return parseSimpleTransformList(string.characters16(), string.length()); }
static PassRefPtrWillBeRawPtr<CSSValue> parseSimpleTransform(CSSPropertyID propertyID, const String& string) { ASSERT(!string.isEmpty()); if (propertyID != CSSPropertyTransform) return nullptr; if (string.is8Bit()) { const LChar* pos = string.characters8(); const LChar* end = pos + string.length(); return parseSimpleTransformList(pos, end); } const UChar* pos = string.characters16(); const UChar* end = pos + string.length(); return parseSimpleTransformList(pos, end); }