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

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

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 4 years, 7 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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 754 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
755 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 755 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
756 756
757 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 757 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
758 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 758 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
759 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; } 759 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; }
760 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); } 760 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); }
761 761
762 int verticalScrollbarWidth() const; 762 int verticalScrollbarWidth() const;
763 int horizontalScrollbarHeight() const; 763 int horizontalScrollbarHeight() const;
764 int intrinsicScrollbarLogicalWidth() const;
765 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } 764 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); }
766 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 765 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
767 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); 766 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&);
768 bool canBeScrolledAndHasScrollableArea() const; 767 bool canBeScrolledAndHasScrollableArea() const;
769 virtual bool canBeProgramaticallyScrolled() const; 768 virtual bool canBeProgramaticallyScrolled() const;
770 virtual void autoscroll(const IntPoint&); 769 virtual void autoscroll(const IntPoint&);
771 bool canAutoscroll() const; 770 bool canAutoscroll() const;
772 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ; 771 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
773 static LayoutBox* findAutoscrollable(LayoutObject*); 772 static LayoutBox* findAutoscrollable(LayoutObject*);
774 virtual void stopAutoscroll() { } 773 virtual void stopAutoscroll() { }
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 || breakValue == BreakLeft 1217 || breakValue == BreakLeft
1219 || breakValue == BreakPage 1218 || breakValue == BreakPage
1220 || breakValue == BreakRecto 1219 || breakValue == BreakRecto
1221 || breakValue == BreakRight 1220 || breakValue == BreakRight
1222 || breakValue == BreakVerso; 1221 || breakValue == BreakVerso;
1223 } 1222 }
1224 1223
1225 } // namespace blink 1224 } // namespace blink
1226 1225
1227 #endif // LayoutBox_h 1226 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698