Changeset 87882 in webkit
- Timestamp:
- Jun 2, 2011 12:21:12 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r87881 r87882 1 2011-06-01 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 Incorrect UA style when printing a simple document 6 https://bugs.webkit.org/show_bug.cgi?id=61900 7 8 This is not testable in run-webkit-tests because unless the test is the first to run in an instance 9 of DumpRenderTree, it is not guaranteed that the full default style sheet has not been initialized. 10 11 * css/CSSStyleSelector.cpp: 12 (WebCore::loadFullDefaultStyle): Replace the simple default print style, which is now equal to the 13 simple default style, with a new RuleSet before adding the style rules from the full default sheet. 14 (WebCore::loadSimpleDefaultStyle): Set defaultPrintStyle to point to the default style. They are 15 equal in the simple case. 16 1 17 2011-06-01 Kent Tamura <tkent@chromium.org> 2 18 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r87660 r87882 559 559 if (simpleDefaultStyleSheet) { 560 560 ASSERT(defaultStyle); 561 ASSERT(defaultPrintStyle == defaultStyle); 561 562 delete defaultStyle; 562 563 simpleDefaultStyleSheet->deref(); 563 564 defaultStyle = new RuleSet; 565 defaultPrintStyle = new RuleSet; 564 566 simpleDefaultStyleSheet = 0; 565 567 } else { … … 588 590 589 591 defaultStyle = new RuleSet; 590 defaultPrintStyle = new RuleSet; 592 // There are no media-specific rules in the simple default style. 593 defaultPrintStyle = defaultStyle; 591 594 defaultQuirksStyle = new RuleSet; 592 595
Note: See TracChangeset
for help on using the changeset viewer.