| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 unsigned actualColumnCount() const; | 224 unsigned actualColumnCount() const; |
| 225 | 225 |
| 226 const char* name() const override { return "LayoutMultiColumnSet"; } | 226 const char* name() const override { return "LayoutMultiColumnSet"; } |
| 227 | 227 |
| 228 // Sets |columnRuleBounds| to the bounds of each column rule rect's painted | 228 // Sets |columnRuleBounds| to the bounds of each column rule rect's painted |
| 229 // extent, adjusted by paint offset, before pixel snapping. Returns true if | 229 // extent, adjusted by paint offset, before pixel snapping. Returns true if |
| 230 // column rules should be painted at all. | 230 // column rules should be painted at all. |
| 231 bool computeColumnRuleBounds(const LayoutPoint& paintOffset, | 231 bool computeColumnRuleBounds(const LayoutPoint& paintOffset, |
| 232 Vector<LayoutRect>& columnRuleBounds) const; | 232 Vector<LayoutRect>& columnRuleBounds) const; |
| 233 | 233 |
| 234 LayoutRect localOverflowRectForPaintInvalidation() const override; | 234 LayoutRect localVisualRect() const override; |
| 235 | 235 |
| 236 protected: | 236 protected: |
| 237 LayoutMultiColumnSet(LayoutFlowThread*); | 237 LayoutMultiColumnSet(LayoutFlowThread*); |
| 238 | 238 |
| 239 private: | 239 private: |
| 240 void insertedIntoTree() final; | 240 void insertedIntoTree() final; |
| 241 void willBeRemovedFromTree() final; | 241 void willBeRemovedFromTree() final; |
| 242 | 242 |
| 243 bool isSelfCollapsingBlock() const override { return false; } | 243 bool isSelfCollapsingBlock() const override { return false; } |
| 244 | 244 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 268 LayoutUnit m_oldLogicalTop; | 268 LayoutUnit m_oldLogicalTop; |
| 269 | 269 |
| 270 bool m_initialHeightCalculated; | 270 bool m_initialHeightCalculated; |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); | 273 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMultiColumnSet, isLayoutMultiColumnSet()); |
| 274 | 274 |
| 275 } // namespace blink | 275 } // namespace blink |
| 276 | 276 |
| 277 #endif // LayoutMultiColumnSet_h | 277 #endif // LayoutMultiColumnSet_h |
| OLD | NEW |