| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 } | 674 } |
| 675 | 675 |
| 676 PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document) | 676 PassRefPtr<ComputedStyle> StyleResolver::styleForDocument(Document& document) |
| 677 { | 677 { |
| 678 const LocalFrame* frame = document.frame(); | 678 const LocalFrame* frame = document.frame(); |
| 679 | 679 |
| 680 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create(); | 680 RefPtr<ComputedStyle> documentStyle = ComputedStyle::create(); |
| 681 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log
icalOrder); | 681 documentStyle->setRTLOrdering(document.visuallyOrdered() ? VisualOrder : Log
icalOrder); |
| 682 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor
() : 1); | 682 documentStyle->setZoom(frame && !document.printing() ? frame->pageZoomFactor
() : 1); |
| 683 FontDescription documentFontDescription = documentStyle->getFontDescription(
); | 683 FontDescription documentFontDescription = documentStyle->getFontDescription(
); |
| 684 documentFontDescription.setLocale(document.contentLanguage()); | 684 documentFontDescription.setLocale(LayoutLocale::get(document.contentLanguage
())); |
| 685 documentStyle->setFontDescription(documentFontDescription); | 685 documentStyle->setFontDescription(documentFontDescription); |
| 686 documentStyle->setZIndex(0); | 686 documentStyle->setZIndex(0); |
| 687 documentStyle->setIsStackingContext(true); | 687 documentStyle->setIsStackingContext(true); |
| 688 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL
Y); | 688 documentStyle->setUserModify(document.inDesignMode() ? READ_WRITE : READ_ONL
Y); |
| 689 // These are designed to match the user-agent stylesheet values for the docu
ment element | 689 // These are designed to match the user-agent stylesheet values for the docu
ment element |
| 690 // so that the common case doesn't need to create a new ComputedStyle in | 690 // so that the common case doesn't need to create a new ComputedStyle in |
| 691 // Document::inheritHtmlAndBodyElementStyles. | 691 // Document::inheritHtmlAndBodyElementStyles. |
| 692 documentStyle->setDisplay(BLOCK); | 692 documentStyle->setDisplay(BLOCK); |
| 693 documentStyle->setPosition(AbsolutePosition); | 693 documentStyle->setPosition(AbsolutePosition); |
| 694 | 694 |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 visitor->trace(m_siblingRuleSet); | 1743 visitor->trace(m_siblingRuleSet); |
| 1744 visitor->trace(m_uncommonAttributeRuleSet); | 1744 visitor->trace(m_uncommonAttributeRuleSet); |
| 1745 visitor->trace(m_watchedSelectorsRules); | 1745 visitor->trace(m_watchedSelectorsRules); |
| 1746 visitor->trace(m_treeBoundaryCrossingScopes); | 1746 visitor->trace(m_treeBoundaryCrossingScopes); |
| 1747 visitor->trace(m_styleSharingLists); | 1747 visitor->trace(m_styleSharingLists); |
| 1748 visitor->trace(m_pendingStyleSheets); | 1748 visitor->trace(m_pendingStyleSheets); |
| 1749 visitor->trace(m_document); | 1749 visitor->trace(m_document); |
| 1750 } | 1750 } |
| 1751 | 1751 |
| 1752 } // namespace blink | 1752 } // namespace blink |
| OLD | NEW |