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

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

Issue 1158183006: Remove the old multicol implementation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 137 }
140 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } 138 bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; }
141 139
142 // Notification that this view moved into or out of a native window. 140 // Notification that this view moved into or out of a native window.
143 void setIsInWindow(bool); 141 void setIsInWindow(bool);
144 142
145 DeprecatedPaintLayerCompositor* compositor(); 143 DeprecatedPaintLayerCompositor* compositor();
146 bool usesCompositing() const; 144 bool usesCompositing() const;
147 145
148 IntRect unscaledDocumentRect() const; 146 IntRect unscaledDocumentRect() const;
149 LayoutRect backgroundRect(LayoutBox* backgroundLayoutObject) const;
150 147
151 IntRect documentRect() const; 148 IntRect documentRect() const;
152 149
153 // LayoutObject that paints the root background has background-images which all have background-attachment: fixed. 150 // LayoutObject that paints the root background has background-images which all have background-attachment: fixed.
154 bool rootBackgroundIsEntirelyFixed() const; 151 bool rootBackgroundIsEntirelyFixed() const;
155 152
156 IntervalArena* intervalArena(); 153 IntervalArena* intervalArena();
157 154
158 void setLayoutQuoteHead(LayoutQuote* head) { m_layoutQuoteHead = head; } 155 void setLayoutQuoteHead(LayoutQuote* head) { m_layoutQuoteHead = head; }
159 LayoutQuote* layoutQuoteHead() const { return m_layoutQuoteHead; } 156 LayoutQuote* layoutQuoteHead() const { return m_layoutQuoteHead; }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 238 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
242 } 239 }
243 private: 240 private:
244 const PaintInvalidationState* m_paintInvalidationState; 241 const PaintInvalidationState* m_paintInvalidationState;
245 bool m_didDisable; 242 bool m_didDisable;
246 }; 243 };
247 244
248 } // namespace blink 245 } // namespace blink
249 246
250 #endif // LayoutView_h 247 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698