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

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

Issue 1766723004: style: Remame values in EOverflow and EVerticalAlign to CamelCase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-EOverflowEVerticalAlign: rebase Created 4 years, 9 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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); 694 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&);
695 bool canBeScrolledAndHasScrollableArea() const; 695 bool canBeScrolledAndHasScrollableArea() const;
696 virtual bool canBeProgramaticallyScrolled() const; 696 virtual bool canBeProgramaticallyScrolled() const;
697 virtual void autoscroll(const IntPoint&); 697 virtual void autoscroll(const IntPoint&);
698 bool canAutoscroll() const; 698 bool canAutoscroll() const;
699 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ; 699 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
700 static LayoutBox* findAutoscrollable(LayoutObject*); 700 static LayoutBox* findAutoscrollable(LayoutObject*);
701 virtual void stopAutoscroll() { } 701 virtual void stopAutoscroll() { }
702 virtual void panScroll(const IntPoint&); 702 virtual void panScroll(const IntPoint&);
703 703
704 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); } 704 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OverflowAuto || style()->overflowY() == OverflowPagedY || style ()->overflowY() == OverflowOverlay); }
705 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } 705 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OverflowAuto || style()->overflowX() == OverflowOverlay); }
706 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); } 706 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY (); }
707 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); } 707 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); }
708 708
709 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); } 709 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap pedScrollWidth() != pixelSnappedClientWidth(); }
710 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); } 710 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap pedScrollHeight() != pixelSnappedClientHeight(); }
711 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style() ->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } 711 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style() ->overflowX() == OverflowScroll || hasAutoHorizontalScrollbar()); }
712 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style() ->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } 712 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style() ->overflowY() == OverflowScroll || hasAutoVerticalScrollbar()); }
713 713
714 // Elements such as the <input> field override this to specify that they are scrollable 714 // Elements such as the <input> field override this to specify that they are scrollable
715 // outside the context of the CSS overflow style 715 // outside the context of the CSS overflow style
716 virtual bool isIntrinsicallyScrollable(ScrollbarOrientation orientation) con st { return false; } 716 virtual bool isIntrinsicallyScrollable(ScrollbarOrientation orientation) con st { return false; }
717 717
718 bool hasUnsplittableScrollingOverflow() const; 718 bool hasUnsplittableScrollingOverflow() const;
719 719
720 // Page / column breakability inside block-level objects. 720 // Page / column breakability inside block-level objects.
721 enum PaginationBreakability { 721 enum PaginationBreakability {
722 AllowAnyBreaks, // No restrictions on breaking. May examine children to find possible break points. 722 AllowAnyBreaks, // No restrictions on breaking. May examine children to find possible break points.
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) 1132 if (UNLIKELY(m_inlineBoxWrapper != nullptr))
1133 deleteLineBoxWrapper(); 1133 deleteLineBoxWrapper();
1134 } 1134 }
1135 1135
1136 m_inlineBoxWrapper = boxWrapper; 1136 m_inlineBoxWrapper = boxWrapper;
1137 } 1137 }
1138 1138
1139 } // namespace blink 1139 } // namespace blink
1140 1140
1141 #endif // LayoutBox_h 1141 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.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