OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 (documentElement()->needsAttach() || | 1798 (documentElement()->needsAttach() || |
1799 !documentElement()->computedStyle() || | 1799 !documentElement()->computedStyle() || |
1800 documentElement()->computedStyle()->fontSize() != | 1800 documentElement()->computedStyle()->fontSize() != |
1801 documentElementStyle->fontSize())) { | 1801 documentElementStyle->fontSize())) { |
1802 ensureStyleResolver().invalidateMatchedPropertiesCache(); | 1802 ensureStyleResolver().invalidateMatchedPropertiesCache(); |
1803 documentElement()->setNeedsStyleRecalc( | 1803 documentElement()->setNeedsStyleRecalc( |
1804 SubtreeStyleChange, | 1804 SubtreeStyleChange, |
1805 StyleChangeReasonForTracing::create(StyleChangeReason::FontSizeChange)); | 1805 StyleChangeReasonForTracing::create(StyleChangeReason::FontSizeChange)); |
1806 } | 1806 } |
1807 | 1807 |
1808 EOverflowAnchor overflowAnchor = AnchorAuto; | 1808 EOverflowAnchor overflowAnchor = EOverflowAnchor::Auto; |
1809 EOverflow overflowX = OverflowAuto; | 1809 EOverflow overflowX = OverflowAuto; |
1810 EOverflow overflowY = OverflowAuto; | 1810 EOverflow overflowY = OverflowAuto; |
1811 float columnGap = 0; | 1811 float columnGap = 0; |
1812 if (overflowStyle) { | 1812 if (overflowStyle) { |
1813 overflowAnchor = overflowStyle->overflowAnchor(); | 1813 overflowAnchor = overflowStyle->overflowAnchor(); |
1814 overflowX = overflowStyle->overflowX(); | 1814 overflowX = overflowStyle->overflowX(); |
1815 overflowY = overflowStyle->overflowY(); | 1815 overflowY = overflowStyle->overflowY(); |
1816 // Visible overflow on the viewport is meaningless, and the spec says to | 1816 // Visible overflow on the viewport is meaningless, and the spec says to |
1817 // treat it as 'auto': | 1817 // treat it as 'auto': |
1818 if (overflowX == OverflowVisible) | 1818 if (overflowX == OverflowVisible) |
1819 overflowX = OverflowAuto; | 1819 overflowX = OverflowAuto; |
1820 if (overflowY == OverflowVisible) | 1820 if (overflowY == OverflowVisible) |
1821 overflowY = OverflowAuto; | 1821 overflowY = OverflowAuto; |
1822 if (overflowAnchor == AnchorVisible) | 1822 if (overflowAnchor == EOverflowAnchor::Visible) |
1823 overflowAnchor = AnchorAuto; | 1823 overflowAnchor = EOverflowAnchor::Auto; |
1824 // Column-gap is (ab)used by the current paged overflow implementation (in | 1824 // Column-gap is (ab)used by the current paged overflow implementation (in |
1825 // lack of other ways to specify gaps between pages), so we have to | 1825 // lack of other ways to specify gaps between pages), so we have to |
1826 // propagate it too. | 1826 // propagate it too. |
1827 columnGap = overflowStyle->columnGap(); | 1827 columnGap = overflowStyle->columnGap(); |
1828 } | 1828 } |
1829 | 1829 |
1830 ScrollSnapType snapType = overflowStyle->getScrollSnapType(); | 1830 ScrollSnapType snapType = overflowStyle->getScrollSnapType(); |
1831 const LengthPoint& snapDestination = overflowStyle->scrollSnapDestination(); | 1831 const LengthPoint& snapDestination = overflowStyle->scrollSnapDestination(); |
1832 | 1832 |
1833 RefPtr<ComputedStyle> documentStyle = layoutViewItem().mutableStyle(); | 1833 RefPtr<ComputedStyle> documentStyle = layoutViewItem().mutableStyle(); |
(...skipping 4755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6589 } | 6589 } |
6590 | 6590 |
6591 void showLiveDocumentInstances() { | 6591 void showLiveDocumentInstances() { |
6592 WeakDocumentSet& set = liveDocumentSet(); | 6592 WeakDocumentSet& set = liveDocumentSet(); |
6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6593 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6594 for (Document* document : set) | 6594 for (Document* document : set) |
6595 fprintf(stderr, "- Document %p URL: %s\n", document, | 6595 fprintf(stderr, "- Document %p URL: %s\n", document, |
6596 document->url().getString().utf8().data()); | 6596 document->url().getString().utf8().data()); |
6597 } | 6597 } |
6598 #endif | 6598 #endif |
OLD | NEW |