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

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

Issue 1148173003: Changing out-of-flow-ness on a multicol child may affect the need for column sets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the 65 // Skip past a column spanner during flow thread layout. Spanners are not la id out inside the
66 // flow thread, since the flow thread is not in a spanner's containing block chain (since the 66 // flow thread, since the flow thread is not in a spanner's containing block chain (since the
67 // containing block is the multicol container). If the spanner follows right after a column set 67 // containing block is the multicol container). If the spanner follows right after a column set
68 // (as opposed to following another spanner), we may have to stretch the flo w thread to ensure 68 // (as opposed to following another spanner), we may have to stretch the flo w thread to ensure
69 // completely filled columns in the preceding column set. Return this adjust ment, if any. 69 // completely filled columns in the preceding column set. Return this adjust ment, if any.
70 virtual LayoutUnit skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlow Thread) { return LayoutUnit(); } 70 virtual LayoutUnit skipColumnSpanner(LayoutBox*, LayoutUnit logicalTopInFlow Thread) { return LayoutUnit(); }
71 71
72 virtual void flowThreadDescendantWasInserted(LayoutObject*) { } 72 virtual void flowThreadDescendantWasInserted(LayoutObject*) { }
73 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) { } 73 virtual void flowThreadDescendantWillBeRemoved(LayoutObject*) { }
74 virtual void flowThreadDescendantStyleWillChange(LayoutObject*, StyleDiffere nce, const ComputedStyle& newStyle) { }
75 virtual void flowThreadDescendantStyleDidChange(LayoutObject*, StyleDifferen ce, const ComputedStyle& oldStyle) { }
74 76
75 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override final; 77 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override final;
76 78
77 virtual void addColumnSetToThread(LayoutMultiColumnSet*) = 0; 79 virtual void addColumnSetToThread(LayoutMultiColumnSet*) = 0;
78 virtual void removeColumnSetFromThread(LayoutMultiColumnSet*); 80 virtual void removeColumnSetFromThread(LayoutMultiColumnSet*);
79 81
80 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override; 82 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override;
81 83
82 bool hasColumnSets() const { return m_multiColumnSetList.size(); } 84 bool hasColumnSets() const { return m_multiColumnSetList.size(); }
83 85
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 }; 165 };
164 166
165 template <> struct ValueToString<LayoutMultiColumnSet*> { 167 template <> struct ValueToString<LayoutMultiColumnSet*> {
166 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); } 168 static String string(const LayoutMultiColumnSet* value) { return String::for mat("%p", value); }
167 }; 169 };
168 #endif 170 #endif
169 171
170 } // namespace blink 172 } // namespace blink
171 173
172 #endif // LayoutFlowThread_h 174 #endif // LayoutFlowThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698