[Webkit-unassigned] [Bug 28282] New: CSSMutableStyleDeclaration::setProperty does not parse color property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 13 14:36:19 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28282

           Summary: CSSMutableStyleDeclaration::setProperty does not parse
                    color property
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org


CSSMutableStyleDeclaration::setProperty does not parse CSSPropertyColor
property.  e.g. in /editing/execCommand/modifyForeColorByCharacter.html, we add
green color but parsed color has the RGBA32 value 0.  Put a break point in
executeApplyStyle (109 @ editing/EditorCommand.cpp).

Inserting the following code would reveal this behavior:
    RefPtr<CSSValue> value = style->getPropertyCSSValue(propertyID);
    ASSERT(value->isPrimitiveValue());
    CSSPrimitiveValue* pvalue = static_cast<CSSPrimitiveValue*>(value.get());
    fprintf(stderr, "rgba32[%x] cssText[%s]\n", pvalue->getRGBA32Value(),
pvalue->cssText().ascii().data());

which prints
rgba32[0] cssText[green]

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list