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

Side by Side Diff: sky/engine/core/rendering/RenderBox.h

Issue 877043002: Remove RenderLayerScrollableArea (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/rendering/RenderBlockFlow.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 #define SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 24 #define SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
25 25
26 #include "sky/engine/core/rendering/RenderBoxModelObject.h" 26 #include "sky/engine/core/rendering/RenderBoxModelObject.h"
27 #include "sky/engine/core/rendering/RenderOverflow.h" 27 #include "sky/engine/core/rendering/RenderOverflow.h"
28 #include "sky/engine/platform/scroll/ScrollTypes.h" 28 #include "sky/engine/platform/scroll/ScrollTypes.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 struct PaintInfo; 32 struct PaintInfo;
33 class RenderBlockFlow; 33 class RenderBlockFlow;
34 class RenderLayerScrollableArea;
35 34
36 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; 35 enum SizeType { MainOrPreferredSize, MinSize, MaxSize };
37 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding }; 36 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde rPadding };
38 enum MarginDirection { BlockDirection, InlineDirection }; 37 enum MarginDirection { BlockDirection, InlineDirection };
39 38
40 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; 39 enum ShouldComputePreferred { ComputeActual, ComputePreferred };
41 40
42 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible }; 41 enum ContentsClipBehavior { ForceContentsClip, SkipContentsClipIfPossible };
43 42
44 enum ScrollOffsetClamping { 43 enum ScrollOffsetClamping {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); } 390 virtual LayoutUnit availableLogicalWidth() const { return contentLogicalWidt h(); }
392 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 391 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
393 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 392 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
394 393
395 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 394 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
396 // Relative positioning is one of those cases, since left/top offsets are ph ysical. 395 // Relative positioning is one of those cases, since left/top offsets are ph ysical.
397 LayoutUnit availableWidth() const { return availableLogicalWidth(); } 396 LayoutUnit availableWidth() const { return availableLogicalWidth(); }
398 LayoutUnit availableHeight() const { return availableLogicalHeight(IncludeMa rginBorderPadding); } 397 LayoutUnit availableHeight() const { return availableLogicalHeight(IncludeMa rginBorderPadding); }
399 398
400 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); 399 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1);
401 bool canBeScrolledAndHasScrollableArea() const;
402 virtual bool canBeProgramaticallyScrolled() const; 400 virtual bool canBeProgramaticallyScrolled() const;
403 virtual void autoscroll(const IntPoint&); 401 virtual void autoscroll(const IntPoint&);
404 bool autoscrollInProgress() const; 402 bool autoscrollInProgress() const;
405 bool canAutoscroll() const; 403 bool canAutoscroll() const;
406 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; 404 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const;
407 static RenderBox* findAutoscrollable(RenderObject*); 405 static RenderBox* findAutoscrollable(RenderObject*);
408 virtual void stopAutoscroll() { } 406 virtual void stopAutoscroll() { }
409 407
410 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); } 408 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style() ->overflowY() == OAUTO || style()->overflowY() == OOVERLAY); }
411 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } 409 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style ()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); }
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 if (UNLIKELY(inlineBoxWrapper() != 0)) 615 if (UNLIKELY(inlineBoxWrapper() != 0))
618 deleteLineBoxWrapper(); 616 deleteLineBoxWrapper();
619 } 617 }
620 618
621 ensureRareData().m_inlineBoxWrapper = boxWrapper; 619 ensureRareData().m_inlineBoxWrapper = boxWrapper;
622 } 620 }
623 621
624 } // namespace blink 622 } // namespace blink
625 623
626 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 624 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlockFlow.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698