Changeset 20993 in webkit
- Timestamp:
- Apr 21, 2007 1:14:25 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r20982 r20993 1 2007-04-21 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Darin. 4 5 - test for http://bugs.webkit.org/show_bug.cgi?id=13417 6 Repro crash when the first argument to getMatchedCSSRules is not an element 7 8 * fast/dom/Window/getMatchedCSSRules-null-crash-expected.txt: Added. 9 * fast/dom/Window/getMatchedCSSRules-null-crash.html: Added. 10 1 11 2007-04-20 Beth Dakin <bdakin@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r20992 r20993 1 2007-04-21 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Darin. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=13417 6 Repro crash when the first argument to getMatchedCSSRules is not an element 7 8 Test: fast/dom/Window/getMatchedCSSRules-null-crash.html 9 10 * css/cssstyleselector.cpp: 11 (WebCore::CSSStyleSelector::styleRulesForElement): Added null check. 12 1 13 2007-04-21 Mitz Pettel <mitz@webkit.org> 2 14 -
trunk/WebCore/css/cssstyleselector.cpp
r20992 r20993 1177 1177 RefPtr<CSSRuleList> CSSStyleSelector::styleRulesForElement(Element* e, bool authorOnly) 1178 1178 { 1179 if (!e ->document()->haveStylesheetsLoaded())1179 if (!e || !e->document()->haveStylesheetsLoaded()) 1180 1180 return 0; 1181 1181
Note: See TracChangeset
for help on using the changeset viewer.