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

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

Issue 1962623002: Relayout an object that becomes a spanner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutMultiColumnSpannerPlaceholder_h 5 #ifndef LayoutMultiColumnSpannerPlaceholder_h
6 #define LayoutMultiColumnSpannerPlaceholder_h 6 #define LayoutMultiColumnSpannerPlaceholder_h
7 7
8 #include "core/layout/LayoutMultiColumnFlowThread.h" 8 #include "core/layout/LayoutMultiColumnFlowThread.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 19 matching lines...) Expand all
30 // spanner is laid out via its spanner set (us), so we need to make sure that we enter it. 30 // spanner is laid out via its spanner set (us), so we need to make sure that we enter it.
31 setChildNeedsLayout(MarkOnlyThis); 31 setChildNeedsLayout(MarkOnlyThis);
32 } 32 }
33 33
34 void layoutObjectInFlowThreadStyleDidChange(const ComputedStyle* oldStyle); 34 void layoutObjectInFlowThreadStyleDidChange(const ComputedStyle* oldStyle);
35 void updateMarginProperties(); 35 void updateMarginProperties();
36 36
37 const char* name() const override { return "LayoutMultiColumnSpannerPlacehol der"; } 37 const char* name() const override { return "LayoutMultiColumnSpannerPlacehol der"; }
38 38
39 protected: 39 protected:
40 void insertedIntoTree() override;
40 void willBeRemovedFromTree() override; 41 void willBeRemovedFromTree() override;
41 bool needsPreferredWidthsRecalculation() const override; 42 bool needsPreferredWidthsRecalculation() const override;
42 LayoutUnit minPreferredLogicalWidth() const override; 43 LayoutUnit minPreferredLogicalWidth() const override;
43 LayoutUnit maxPreferredLogicalWidth() const override; 44 LayoutUnit maxPreferredLogicalWidth() const override;
44 void layout() override; 45 void layout() override;
45 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, L ogicalExtentComputedValues&) const override; 46 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, L ogicalExtentComputedValues&) const override;
46 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de; 47 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState&) overri de;
47 void paint(const PaintInfo&, const LayoutPoint& paintOffset) const override; 48 void paint(const PaintInfo&, const LayoutPoint& paintOffset) const override;
48 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; 49 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
49 50
50 private: 51 private:
51 LayoutMultiColumnSpannerPlaceholder(LayoutBox*); 52 LayoutMultiColumnSpannerPlaceholder(LayoutBox*);
52 53
53 LayoutBox* m_layoutObjectInFlowThread; // The actual column-span:all layoutO bject inside the flow thread. 54 LayoutBox* m_layoutObjectInFlowThread; // The actual column-span:all layoutO bject inside the flow thread.
54 }; 55 };
55 56
56 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul tiColumnSpannerPlaceholder()); 57 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSpannerPlaceholder, isLayoutMul tiColumnSpannerPlaceholder());
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif 61 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698