WebCore:
2008-09-22 David Hyatt <hyatt@apple.com>
Clean up some parent relationships in the back end stylesheet code. Make sure parentStyleSheet
properly walks up nested rule blocks to reach the parent sheet instead of giving up at the immediate
parent. Also fix the doc() method so that it is properly set when the parent of the sheet is an import
rule.
Reviewed by Sam Weinig
Added fast/css/nested-rule-parent-sheet.html
* css/CSSImportRule.cpp:
(WebCore::CSSImportRule::insertedIntoParent):
* css/CSSRule.cpp:
(WebCore::CSSRule::parentStyleSheet):
(WebCore::CSSRule::parentRule):
* css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::CSSStyleSheet):
* css/CSSStyleSheet.h:
LayoutTests:
2008-09-22 David Hyatt <hyatt@apple.com>
Add new test for .parentStyleSheet.
Reviewed by Sam Weinig
* fast/css/nested-rule-parent-sheet.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
8 files changed