WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
20367
CSSRuleSet::addRulesFromSheet uses the wrong object for fontFaceRule?
https://bugs.webkit.org/show_bug.cgi?id=20367
Summary
CSSRuleSet::addRulesFromSheet uses the wrong object for fontFaceRule?
Simon Fraser (smfr)
Reported
2008-08-12 18:04:56 PDT
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.
Attachments
Patch, testcase, changelog
(3.19 KB, patch)
2008-08-13 17:44 PDT
,
Simon Fraser (smfr)
eric
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2008-08-12 23:37:40 PDT
Yup. Just add a test case (it's easy to make one, and it instantly crashes a debug build) etc.
Simon Fraser (smfr)
Comment 2
2008-08-13 17:44:49 PDT
Created
attachment 22783
[details]
Patch, testcase, changelog
Eric Seidel (no email)
Comment 3
2008-08-13 20:24:02 PDT
Comment on
attachment 22783
[details]
Patch, testcase, changelog Thanks!
Simon Fraser (smfr)
Comment 4
2008-08-14 16:04:54 PDT
Committed
r35760
M WebCore/ChangeLog M WebCore/css/CSSStyleSelector.cpp A LayoutTests/platform/mac/fast/css/font-face-in-media-rule-expected.txt M LayoutTests/ChangeLog A LayoutTests/fast/css/font-face-in-media-rule.html
r35760
= 50954e56fb2e2204e506513419f556cf0dc8a1fc (trunk)
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug