Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2658953004: Rename EOverflowAnchor values with k prefix. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 (documentElement()->needsAttach() || 1804 (documentElement()->needsAttach() ||
1805 !documentElement()->computedStyle() || 1805 !documentElement()->computedStyle() ||
1806 documentElement()->computedStyle()->fontSize() != 1806 documentElement()->computedStyle()->fontSize() !=
1807 documentElementStyle->fontSize())) { 1807 documentElementStyle->fontSize())) {
1808 ensureStyleResolver().invalidateMatchedPropertiesCache(); 1808 ensureStyleResolver().invalidateMatchedPropertiesCache();
1809 documentElement()->setNeedsStyleRecalc( 1809 documentElement()->setNeedsStyleRecalc(
1810 SubtreeStyleChange, 1810 SubtreeStyleChange,
1811 StyleChangeReasonForTracing::create(StyleChangeReason::FontSizeChange)); 1811 StyleChangeReasonForTracing::create(StyleChangeReason::FontSizeChange));
1812 } 1812 }
1813 1813
1814 EOverflowAnchor overflowAnchor = EOverflowAnchor::Auto; 1814 EOverflowAnchor overflowAnchor = EOverflowAnchor::kAuto;
1815 EOverflow overflowX = EOverflow::Auto; 1815 EOverflow overflowX = EOverflow::Auto;
1816 EOverflow overflowY = EOverflow::Auto; 1816 EOverflow overflowY = EOverflow::Auto;
1817 float columnGap = 0; 1817 float columnGap = 0;
1818 if (overflowStyle) { 1818 if (overflowStyle) {
1819 overflowAnchor = overflowStyle->overflowAnchor(); 1819 overflowAnchor = overflowStyle->overflowAnchor();
1820 overflowX = overflowStyle->overflowX(); 1820 overflowX = overflowStyle->overflowX();
1821 overflowY = overflowStyle->overflowY(); 1821 overflowY = overflowStyle->overflowY();
1822 // Visible overflow on the viewport is meaningless, and the spec says to 1822 // Visible overflow on the viewport is meaningless, and the spec says to
1823 // treat it as 'auto': 1823 // treat it as 'auto':
1824 if (overflowX == EOverflow::Visible) 1824 if (overflowX == EOverflow::Visible)
1825 overflowX = EOverflow::Auto; 1825 overflowX = EOverflow::Auto;
1826 if (overflowY == EOverflow::Visible) 1826 if (overflowY == EOverflow::Visible)
1827 overflowY = EOverflow::Auto; 1827 overflowY = EOverflow::Auto;
1828 if (overflowAnchor == EOverflowAnchor::Visible) 1828 if (overflowAnchor == EOverflowAnchor::kVisible)
1829 overflowAnchor = EOverflowAnchor::Auto; 1829 overflowAnchor = EOverflowAnchor::kAuto;
1830 // Column-gap is (ab)used by the current paged overflow implementation (in 1830 // Column-gap is (ab)used by the current paged overflow implementation (in
1831 // lack of other ways to specify gaps between pages), so we have to 1831 // lack of other ways to specify gaps between pages), so we have to
1832 // propagate it too. 1832 // propagate it too.
1833 columnGap = overflowStyle->columnGap(); 1833 columnGap = overflowStyle->columnGap();
1834 } 1834 }
1835 1835
1836 ScrollSnapType snapType = overflowStyle->getScrollSnapType(); 1836 ScrollSnapType snapType = overflowStyle->getScrollSnapType();
1837 const LengthPoint& snapDestination = overflowStyle->scrollSnapDestination(); 1837 const LengthPoint& snapDestination = overflowStyle->scrollSnapDestination();
1838 1838
1839 RefPtr<ComputedStyle> documentStyle = layoutViewItem().mutableStyle(); 1839 RefPtr<ComputedStyle> documentStyle = layoutViewItem().mutableStyle();
(...skipping 4695 matching lines...) Expand 10 before | Expand all | Expand 10 after
6535 } 6535 }
6536 6536
6537 void showLiveDocumentInstances() { 6537 void showLiveDocumentInstances() {
6538 WeakDocumentSet& set = liveDocumentSet(); 6538 WeakDocumentSet& set = liveDocumentSet();
6539 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6539 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6540 for (Document* document : set) 6540 for (Document* document : set)
6541 fprintf(stderr, "- Document %p URL: %s\n", document, 6541 fprintf(stderr, "- Document %p URL: %s\n", document,
6542 document->url().getString().utf8().data()); 6542 document->url().getString().utf8().data());
6543 } 6543 }
6544 #endif 6544 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698