[Webkit-unassigned] [Bug 20367] New: CSSRuleSet::addRulesFromSheet uses the wrong object for fontFaceRule?

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 12 18:04:56 PDT 2008


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

           Summary: CSSRuleSet::addRulesFromSheet uses the wrong object for
                    fontFaceRule?
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: simon.fraser at apple.com


CSSRuleSet::addRulesFromSheet seems to use the wrong object when casting to a
fontFaceRule. Maybe patch:

                             addRule(rule, s);
                     } else if (childItem->isFontFaceRule() && styleSelector) {
                         // Add this font face to our set.
-                        const CSSFontFaceRule* fontFaceRule =
static_cast<CSSFontFaceRule*>(item);
+                        const CSSFontFaceRule* fontFaceRule =
static_cast<CSSFontFaceRule*>(childItem);
                        
styleSelector->fontSelector()->addFontFaceRule(fontFaceRule);
                     } else if (childItem->isKeyframesRule() && styleSelector)
{
                         // Add this keyframe rule to our set.


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



More information about the webkit-unassigned mailing list