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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (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 * 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 static LayoutBox* findAutoscrollable(LayoutObject*); 998 static LayoutBox* findAutoscrollable(LayoutObject*);
999 virtual void stopAutoscroll() {} 999 virtual void stopAutoscroll() {}
1000 1000
1001 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { 1001 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const {
1002 return hasOverflowClip() && 1002 return hasOverflowClip() &&
1003 (style()->overflowY() == EOverflow::kAuto || 1003 (style()->overflowY() == EOverflow::kAuto ||
1004 style()->overflowY() == EOverflow::kWebkitPagedY || 1004 style()->overflowY() == EOverflow::kWebkitPagedY ||
1005 style()->overflowY() == EOverflow::kOverlay); 1005 style()->overflowY() == EOverflow::kOverlay);
1006 } 1006 }
1007 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { 1007 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const {
1008 return hasOverflowClip() && (style()->overflowX() == EOverflow::kAuto || 1008 return hasOverflowClip() &&
1009 style()->overflowX() == EOverflow::kOverlay); 1009 (style()->overflowX() == EOverflow::kAuto ||
1010 style()->overflowX() == EOverflow::kOverlay);
1010 } 1011 }
1011 DISABLE_CFI_PERF bool scrollsOverflow() const { 1012 DISABLE_CFI_PERF bool scrollsOverflow() const {
1012 return scrollsOverflowX() || scrollsOverflowY(); 1013 return scrollsOverflowX() || scrollsOverflowY();
1013 } 1014 }
1014 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { 1015 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const {
1015 return style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); 1016 return style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft();
1016 } 1017 }
1017 1018
1018 bool hasScrollableOverflowX() const { 1019 bool hasScrollableOverflowX() const {
1019 return scrollsOverflowX() && 1020 return scrollsOverflowX() &&
1020 pixelSnappedScrollWidth() != pixelSnappedClientWidth(); 1021 pixelSnappedScrollWidth() != pixelSnappedClientWidth();
1021 } 1022 }
1022 bool hasScrollableOverflowY() const { 1023 bool hasScrollableOverflowY() const {
1023 return scrollsOverflowY() && 1024 return scrollsOverflowY() &&
1024 pixelSnappedScrollHeight() != pixelSnappedClientHeight(); 1025 pixelSnappedScrollHeight() != pixelSnappedClientHeight();
1025 } 1026 }
1026 virtual bool scrollsOverflowX() const { 1027 virtual bool scrollsOverflowX() const {
1027 return hasOverflowClip() && (style()->overflowX() == EOverflow::kScroll || 1028 return hasOverflowClip() &&
1028 hasAutoHorizontalScrollbar()); 1029 (style()->overflowX() == EOverflow::kScroll ||
1030 hasAutoHorizontalScrollbar());
1029 } 1031 }
1030 virtual bool scrollsOverflowY() const { 1032 virtual bool scrollsOverflowY() const {
1031 return hasOverflowClip() && (style()->overflowY() == EOverflow::kScroll || 1033 return hasOverflowClip() &&
1032 hasAutoVerticalScrollbar()); 1034 (style()->overflowY() == EOverflow::kScroll ||
1035 hasAutoVerticalScrollbar());
1033 } 1036 }
1034 1037
1035 // Elements such as the <input> field override this to specify that they are 1038 // Elements such as the <input> field override this to specify that they are
1036 // scrollable outside the context of the CSS overflow style 1039 // scrollable outside the context of the CSS overflow style
1037 virtual bool isIntrinsicallyScrollable( 1040 virtual bool isIntrinsicallyScrollable(
1038 ScrollbarOrientation orientation) const { 1041 ScrollbarOrientation orientation) const {
1039 return false; 1042 return false;
1040 } 1043 }
1041 1044
1042 bool hasUnsplittableScrollingOverflow() const; 1045 bool hasUnsplittableScrollingOverflow() const;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 breakValue == EBreakBetween::kLeft || 1637 breakValue == EBreakBetween::kLeft ||
1635 breakValue == EBreakBetween::kPage || 1638 breakValue == EBreakBetween::kPage ||
1636 breakValue == EBreakBetween::kRecto || 1639 breakValue == EBreakBetween::kRecto ||
1637 breakValue == EBreakBetween::kRight || 1640 breakValue == EBreakBetween::kRight ||
1638 breakValue == EBreakBetween::kVerso; 1641 breakValue == EBreakBetween::kVerso;
1639 } 1642 }
1640 1643
1641 } // namespace blink 1644 } // namespace blink
1642 1645
1643 #endif // LayoutBox_h 1646 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698