Bug 76305

Summary: Templatizing CSSValuePool::createIdentifierValue() would simplify CSSComputedStyleDeclaration::getPropertyCSSValue()
Product: WebKit Reporter: Jon Lee <jonlee>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Jon Lee
Reported 2012-01-13 13:38:27 PST
In the case of CSSPropertyTextOverflow we see this code: case CSSPropertyTextOverflow: if (style->textOverflow()) return cssValuePool->createIdentifierValue(CSSValueEllipsis); return cssValuePool->createIdentifierValue(CSSValueClip); Templatizing createIdentifierValue() would allow us to reduce this to just one line, leverage the mappings implemented in CSSPrimitiveValueMappings.h. (See https://bugs.webkit.org/show_bug.cgi?id=76118#c8)
Attachments
Radar WebKit Bug Importer
Comment 1 2012-01-13 13:38:47 PST
Note You need to log in before you can comment on or make changes to this bug.