Changeset 60992 in webkit
- Timestamp:
- Jun 10, 2010 10:51:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r60990 r60992 1 2010-06-10 Yuzo Fujishima <yuzo@google.com> 2 3 Reviewed by Shinichiro Hamaji. 4 5 Fix Bug 40452: REGRESSION: printing is broken if stylesheet has @page 6 https://bugs.webkit.org/show_bug.cgi?id=40452 7 8 * platform/chromium/test_expectations.txt: 9 * platform/mac/printing/page-rule-in-media-query-expected.checksum: Added. 10 * platform/mac/printing/page-rule-in-media-query-expected.png: Added. 11 * platform/mac/printing/page-rule-in-media-query-expected.txt: Added. 12 * printing/page-rule-in-media-query.html: Added. 13 1 14 2010-06-10 Oliver Hunt <oliver@apple.com> 2 15 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r60968 r60992 311 311 // These tests try to print a PDF file as the expected result. I don't think 312 312 // we plan on supporting this anytime soon. 313 WONTFIX SKIP : printing/compositing-layer-printing.html = PASS 313 314 WONTFIX SKIP : printing/media-queries-print.html = PASS 314 WONTFIX SKIP : printing/ compositing-layer-printing.html = PASS315 WONTFIX SKIP : printing/page-rule-in-media-query.html = PASS 315 316 316 317 // Chrome doesn't call the willCacheResponse callback (a method -
trunk/WebCore/ChangeLog
r60991 r60992 1 2010-06-10 Yuzo Fujishima <yuzo@google.com> 2 3 Reviewed by Shinichiro Hamaji. 4 5 Fix Bug 40452: REGRESSION: printing is broken if stylesheet has @page 6 https://bugs.webkit.org/show_bug.cgi?id=40452 7 8 Test: printing/page-rule-in-media-query.html 9 10 * css/CSSStyleSelector.cpp: 11 (WebCore::CSSRuleSet::addRulesFromSheet): 12 (WebCore::CSSRuleSet::addStyleRule): 13 1 14 2010-06-10 Sheriff Bot <webkit.review.bot@gmail.com> 2 15 -
trunk/WebCore/css/CSSStyleSelector.cpp
r60849 r60992 358 358 359 359 void addRulesFromSheet(CSSStyleSheet*, const MediaQueryEvaluator&, CSSStyleSelector* = 0); 360 360 361 void addStyleRule(StyleBase* item); 361 362 void addRule(CSSStyleRule* rule, CSSSelector* sel); 362 363 void addPageRule(CSSStyleRule* rule, CSSSelector* sel); … … 2769 2770 StyleBase* item = sheet->item(i); 2770 2771 if (item->isStyleRule()) { 2771 if (item->isPageRule()) { 2772 CSSPageRule* pageRule = static_cast<CSSPageRule*>(item); 2773 addPageRule(pageRule, pageRule->selectorList().first()); 2774 } else { 2775 CSSStyleRule* rule = static_cast<CSSStyleRule*>(item); 2776 for (CSSSelector* s = rule->selectorList().first(); s; s = CSSSelectorList::next(s)) 2777 addRule(rule, s); 2778 } 2772 addStyleRule(item); 2779 2773 } 2780 2774 else if (item->isImportRule()) { … … 2793 2787 if (childItem->isStyleRule()) { 2794 2788 // It is a StyleRule, so append it to our list 2795 CSSStyleRule* rule = static_cast<CSSStyleRule*>(childItem); 2796 for (CSSSelector* s = rule->selectorList().first(); s; s = CSSSelectorList::next(s)) 2797 addRule(rule, s); 2789 addStyleRule(childItem); 2798 2790 } else if (childItem->isFontFaceRule() && styleSelector) { 2799 2791 // Add this font face to our set. … … 2817 2809 } else if (item->isKeyframesRule()) 2818 2810 styleSelector->addKeyframeStyle(static_cast<WebKitCSSKeyframesRule*>(item)); 2811 } 2812 } 2813 2814 void CSSRuleSet::addStyleRule(StyleBase* item) 2815 { 2816 if (item->isPageRule()) { 2817 CSSPageRule* pageRule = static_cast<CSSPageRule*>(item); 2818 addPageRule(pageRule, pageRule->selectorList().first()); 2819 } else { 2820 CSSStyleRule* rule = static_cast<CSSStyleRule*>(item); 2821 for (CSSSelector* s = rule->selectorList().first(); s; s = CSSSelectorList::next(s)) 2822 addRule(rule, s); 2819 2823 } 2820 2824 }
Note: See TracChangeset
for help on using the changeset viewer.