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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); 994 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&);
995 bool canBeScrolledAndHasScrollableArea() const; 995 bool canBeScrolledAndHasScrollableArea() const;
996 virtual bool canBeProgramaticallyScrolled() const; 996 virtual bool canBeProgramaticallyScrolled() const;
997 virtual void autoscroll(const IntPoint&); 997 virtual void autoscroll(const IntPoint&);
998 bool canAutoscroll() const; 998 bool canAutoscroll() const;
999 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const; 999 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const;
1000 static LayoutBox* findAutoscrollable(LayoutObject*); 1000 static LayoutBox* findAutoscrollable(LayoutObject*);
1001 virtual void stopAutoscroll() {} 1001 virtual void stopAutoscroll() {}
1002 1002
1003 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { 1003 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const {
1004 return hasOverflowClip() && (style()->overflowY() == EOverflow::Auto || 1004 return hasOverflowClip() &&
1005 style()->overflowY() == EOverflow::PagedY || 1005 (style()->overflowY() == EOverflow::kAuto ||
1006 style()->overflowY() == EOverflow::Overlay); 1006 style()->overflowY() == EOverflow::kWebkitPagedY ||
1007 style()->overflowY() == EOverflow::kOverlay);
1007 } 1008 }
1008 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { 1009 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const {
1009 return hasOverflowClip() && (style()->overflowX() == EOverflow::Auto || 1010 return hasOverflowClip() && (style()->overflowX() == EOverflow::kAuto ||
1010 style()->overflowX() == EOverflow::Overlay); 1011 style()->overflowX() == EOverflow::kOverlay);
1011 } 1012 }
1012 DISABLE_CFI_PERF bool scrollsOverflow() const { 1013 DISABLE_CFI_PERF bool scrollsOverflow() const {
1013 return scrollsOverflowX() || scrollsOverflowY(); 1014 return scrollsOverflowX() || scrollsOverflowY();
1014 } 1015 }
1015 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { 1016 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const {
1016 return style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); 1017 return style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft();
1017 } 1018 }
1018 1019
1019 bool hasScrollableOverflowX() const { 1020 bool hasScrollableOverflowX() const {
1020 return scrollsOverflowX() && 1021 return scrollsOverflowX() &&
1021 pixelSnappedScrollWidth() != pixelSnappedClientWidth(); 1022 pixelSnappedScrollWidth() != pixelSnappedClientWidth();
1022 } 1023 }
1023 bool hasScrollableOverflowY() const { 1024 bool hasScrollableOverflowY() const {
1024 return scrollsOverflowY() && 1025 return scrollsOverflowY() &&
1025 pixelSnappedScrollHeight() != pixelSnappedClientHeight(); 1026 pixelSnappedScrollHeight() != pixelSnappedClientHeight();
1026 } 1027 }
1027 virtual bool scrollsOverflowX() const { 1028 virtual bool scrollsOverflowX() const {
1028 return hasOverflowClip() && (style()->overflowX() == EOverflow::Scroll || 1029 return hasOverflowClip() && (style()->overflowX() == EOverflow::kScroll ||
1029 hasAutoHorizontalScrollbar()); 1030 hasAutoHorizontalScrollbar());
1030 } 1031 }
1031 virtual bool scrollsOverflowY() const { 1032 virtual bool scrollsOverflowY() const {
1032 return hasOverflowClip() && (style()->overflowY() == EOverflow::Scroll || 1033 return hasOverflowClip() && (style()->overflowY() == EOverflow::kScroll ||
1033 hasAutoVerticalScrollbar()); 1034 hasAutoVerticalScrollbar());
1034 } 1035 }
1035 1036
1036 // Elements such as the <input> field override this to specify that they are 1037 // Elements such as the <input> field override this to specify that they are
1037 // scrollable outside the context of the CSS overflow style 1038 // scrollable outside the context of the CSS overflow style
1038 virtual bool isIntrinsicallyScrollable( 1039 virtual bool isIntrinsicallyScrollable(
1039 ScrollbarOrientation orientation) const { 1040 ScrollbarOrientation orientation) const {
1040 return false; 1041 return false;
1041 } 1042 }
1042 1043
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1632
1632 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1633 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1633 return breakValue == BreakColumn || breakValue == BreakLeft || 1634 return breakValue == BreakColumn || breakValue == BreakLeft ||
1634 breakValue == BreakPage || breakValue == BreakRecto || 1635 breakValue == BreakPage || breakValue == BreakRecto ||
1635 breakValue == BreakRight || breakValue == BreakVerso; 1636 breakValue == BreakRight || breakValue == BreakVerso;
1636 } 1637 }
1637 1638
1638 } // namespace blink 1639 } // namespace blink
1639 1640
1640 #endif // LayoutBox_h 1641 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698