| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } | 61 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } |
| 62 | 62 |
| 63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return
NormalDeprecatedPaintLayer; } | 63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return
NormalDeprecatedPaintLayer; } |
| 64 | 64 |
| 65 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr
ide; | 65 virtual bool isChildAllowed(LayoutObject*, const ComputedStyle&) const overr
ide; |
| 66 | 66 |
| 67 virtual void layout() override; | 67 virtual void layout() override; |
| 68 virtual void updateLogicalWidth() override; | 68 virtual void updateLogicalWidth() override; |
| 69 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; | 69 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const override; |
| 70 | 70 |
| 71 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const
override; | |
| 72 | |
| 73 // Based on FrameView::layoutSize, but: | 71 // Based on FrameView::layoutSize, but: |
| 74 // - checks for null FrameView | 72 // - checks for null FrameView |
| 75 // - returns 0x0 if using printing layout | 73 // - returns 0x0 if using printing layout |
| 76 // - scrollbar exclusion is compatible with root layer scrolling | 74 // - scrollbar exclusion is compatible with root layer scrolling |
| 77 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 75 IntSize layoutSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| 78 | 76 |
| 79 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar
s) const { return layoutSize(scrollbarInclusion).height(); } | 77 int viewHeight(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbar
s) const { return layoutSize(scrollbarInclusion).height(); } |
| 80 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars
) const { return layoutSize(scrollbarInclusion).width(); } | 78 int viewWidth(IncludeScrollbarsInRect scrollbarInclusion = ExcludeScrollbars
) const { return layoutSize(scrollbarInclusion).width(); } |
| 81 | 79 |
| 82 int viewLogicalWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 80 int viewLogicalWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 239 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 242 } | 240 } |
| 243 private: | 241 private: |
| 244 const PaintInvalidationState* m_paintInvalidationState; | 242 const PaintInvalidationState* m_paintInvalidationState; |
| 245 bool m_didDisable; | 243 bool m_didDisable; |
| 246 }; | 244 }; |
| 247 | 245 |
| 248 } // namespace blink | 246 } // namespace blink |
| 249 | 247 |
| 250 #endif // LayoutView_h | 248 #endif // LayoutView_h |
| OLD | NEW |