<rdar://problem/11020155> and https://bugs.webkit.org/show_bug.cgi?id=82910
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Apr 2012 18:23:19 +0000 (18:23 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Apr 2012 18:23:19 +0000 (18:23 +0000)
commitfba262371f63a3f7b5e37a004bef7a88bda538dd
tree8417689238a05e75768aaa6200402757d9d2c4d9
parent1766ea60b1ca123685a63a3d9e8dedba6e74a060
<rdar://problem/11020155> and https://bugs.webkit.org/show_bug.cgi?id=82910
REGRESSION (98963 and 109091):  Crash when creating a WebArchive of a page with @page style rules

Reviewed by Antti Koivisto.

Source/WebCore:

Test: webarchive/css-page-rule-crash.html

* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::addSubresourceStyleURLs): Page rules do not (currently) have subresource urls to get,
  and are not CSSStyleRules.

LayoutTests:

* webarchive/css-page-rule-crash-expected.webarchive: Added.
* webarchive/css-page-rule-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@112913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webarchive/css-page-rule-crash-expected.webarchive [new file with mode: 0644]
LayoutTests/webarchive/css-page-rule-crash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/CSSStyleSheet.cpp