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

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

Issue 2660423004: Rename EOverflow values with k prefix. (Closed)
Patch Set: Rebase 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 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::kAuto; 1814 EOverflowAnchor overflowAnchor = EOverflowAnchor::kAuto;
1815 EOverflow overflowX = EOverflow::Auto; 1815 EOverflow overflowX = EOverflow::kAuto;
1816 EOverflow overflowY = EOverflow::Auto; 1816 EOverflow overflowY = EOverflow::kAuto;
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::kVisible)
1825 overflowX = EOverflow::Auto; 1825 overflowX = EOverflow::kAuto;
1826 if (overflowY == EOverflow::Visible) 1826 if (overflowY == EOverflow::kVisible)
1827 overflowY = EOverflow::Auto; 1827 overflowY = EOverflow::kAuto;
1828 if (overflowAnchor == EOverflowAnchor::kVisible) 1828 if (overflowAnchor == EOverflowAnchor::kVisible)
1829 overflowAnchor = EOverflowAnchor::kAuto; 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();
(...skipping 4731 matching lines...) Expand 10 before | Expand all | Expand 10 after
6569 } 6569 }
6570 6570
6571 void showLiveDocumentInstances() { 6571 void showLiveDocumentInstances() {
6572 WeakDocumentSet& set = liveDocumentSet(); 6572 WeakDocumentSet& set = liveDocumentSet();
6573 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6573 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6574 for (blink::Document* document : set) 6574 for (blink::Document* document : set)
6575 fprintf(stderr, "- Document %p URL: %s\n", document, 6575 fprintf(stderr, "- Document %p URL: %s\n", document,
6576 document->url().getString().utf8().data()); 6576 document->url().getString().utf8().data());
6577 } 6577 }
6578 #endif 6578 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698