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

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

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No Overscroll on non-scrollable axes Created 5 years, 6 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 544 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
545 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 545 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
546 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; } 546 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode( ) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding) ; }
547 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); } 547 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode () ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth( ); }
548 548
549 virtual int verticalScrollbarWidth() const; 549 virtual int verticalScrollbarWidth() const;
550 int horizontalScrollbarHeight() const; 550 int horizontalScrollbarHeight() const;
551 int intrinsicScrollbarLogicalWidth() const; 551 int intrinsicScrollbarLogicalWidth() const;
552 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } 552 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode( ) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); }
553 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } 553 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode () ? horizontalScrollbarHeight() : verticalScrollbarWidth(); }
554 virtual bool scroll(ScrollDirectionPhysical, ScrollGranularity, float delta = 1); 554 virtual ScrollResultOneDimensional scroll(ScrollDirectionPhysical, ScrollGra nularity, float delta = 1);
555 bool canBeScrolledAndHasScrollableArea() const; 555 bool canBeScrolledAndHasScrollableArea() const;
556 virtual bool canBeProgramaticallyScrolled() const; 556 virtual bool canBeProgramaticallyScrolled() const;
557 virtual void autoscroll(const IntPoint&); 557 virtual void autoscroll(const IntPoint&);
558 bool canAutoscroll() const; 558 bool canAutoscroll() const;
559 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ; 559 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const ;
560 static LayoutBox* findAutoscrollable(LayoutObject*); 560 static LayoutBox* findAutoscrollable(LayoutObject*);
561 virtual void stopAutoscroll() { } 561 virtual void stopAutoscroll() { }
562 virtual void panScroll(const IntPoint&); 562 virtual void panScroll(const IntPoint&);
563 563
564 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); } 564 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY( ) == OOVERLAY); }
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 if (UNLIKELY(inlineBoxWrapper() != 0)) 938 if (UNLIKELY(inlineBoxWrapper() != 0))
939 deleteLineBoxWrapper(); 939 deleteLineBoxWrapper();
940 } 940 }
941 941
942 ensureRareData().m_inlineBoxWrapper = boxWrapper; 942 ensureRareData().m_inlineBoxWrapper = boxWrapper;
943 } 943 }
944 944
945 } // namespace blink 945 } // namespace blink
946 946
947 #endif // LayoutBox_h 947 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698