Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 351 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); | 351 void dirtyForLayoutFromPercentageHeightDescendants(SubtreeLayoutScope&); |
| 352 | 352 |
| 353 void layout() override; | 353 void layout() override; |
| 354 | 354 |
| 355 enum PositionedLayoutBehavior { | 355 enum PositionedLayoutBehavior { |
| 356 DefaultLayout, | 356 DefaultLayout, |
| 357 LayoutOnlyFixedPositionedObjects, | 357 LayoutOnlyFixedPositionedObjects, |
| 358 ForcedLayoutAfterContainingBlockMoved | 358 ForcedLayoutAfterContainingBlockMoved |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 void layoutPositionedObjects(bool relayoutChildren, | 361 virtual void layoutPositionedObjects( |
|
mstensho (USE GERRIT)
2016/11/04 08:49:12
This shouldn't be necessary.
Manuel Rego
2016/11/04 09:29:17
Mmmm, we need that LayoutGrid::layoutPositionedObj
mstensho (USE GERRIT)
2016/11/04 09:47:34
Duh, no. *I* was missing something. Sorry. This ne
| |
| 362 PositionedLayoutBehavior = DefaultLayout); | 362 bool relayoutChildren, |
| 363 PositionedLayoutBehavior = DefaultLayout); | |
| 363 void markFixedPositionObjectForLayoutIfNeeded(LayoutObject* child, | 364 void markFixedPositionObjectForLayoutIfNeeded(LayoutObject* child, |
| 364 SubtreeLayoutScope&); | 365 SubtreeLayoutScope&); |
| 365 | 366 |
| 366 LayoutUnit marginIntrinsicLogicalWidthForChild(const LayoutBox& child) const; | 367 LayoutUnit marginIntrinsicLogicalWidthForChild(const LayoutBox& child) const; |
| 367 | 368 |
| 368 int beforeMarginInLineDirection(LineDirectionMode) const; | 369 int beforeMarginInLineDirection(LineDirectionMode) const; |
| 369 | 370 |
| 370 void paint(const PaintInfo&, const LayoutPoint&) const override; | 371 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 371 | 372 |
| 372 public: | 373 public: |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 414 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; | 415 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override; |
| 415 void updateFromStyle() override; | 416 void updateFromStyle() override; |
| 416 | 417 |
| 417 // Returns true if non-visible overflow should be respected. Otherwise | 418 // Returns true if non-visible overflow should be respected. Otherwise |
| 418 // hasOverflowClip() will be false and we won't create scrollable area for | 419 // hasOverflowClip() will be false and we won't create scrollable area for |
| 419 // this object even if overflow is non-visible. | 420 // this object even if overflow is non-visible. |
| 420 virtual bool allowsOverflowClip() const; | 421 virtual bool allowsOverflowClip() const; |
| 421 | 422 |
| 422 virtual bool hasLineIfEmpty() const; | 423 virtual bool hasLineIfEmpty() const; |
| 423 | 424 |
| 424 bool simplifiedLayout(); | 425 virtual bool simplifiedLayout(); |
|
mstensho (USE GERRIT)
2016/11/04 08:49:12
Ditto.
Manuel Rego
2016/11/04 09:29:17
True for this case, actually as @cbiesinger sugges
| |
| 425 virtual void simplifiedNormalFlowLayout(); | 426 virtual void simplifiedNormalFlowLayout(); |
| 426 | 427 |
| 427 public: | 428 public: |
| 428 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false); | 429 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false); |
| 429 | 430 |
| 430 protected: | 431 protected: |
| 431 virtual void addOverflowFromChildren(); | 432 virtual void addOverflowFromChildren(); |
| 432 void addOverflowFromPositionedObjects(); | 433 void addOverflowFromPositionedObjects(); |
| 433 void addOverflowFromBlockChildren(); | 434 void addOverflowFromBlockChildren(); |
| 434 void addVisualOverflowFromTheme(); | 435 void addVisualOverflowFromTheme(); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 565 // TODO(lunalu): Temporary in order to ensure compatibility with existing | 566 // TODO(lunalu): Temporary in order to ensure compatibility with existing |
| 566 // layout test results. | 567 // layout test results. |
| 567 virtual void adjustChildDebugRect(LayoutRect&) const {} | 568 virtual void adjustChildDebugRect(LayoutRect&) const {} |
| 568 }; | 569 }; |
| 569 | 570 |
| 570 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 571 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 571 | 572 |
| 572 } // namespace blink | 573 } // namespace blink |
| 573 | 574 |
| 574 #endif // LayoutBlock_h | 575 #endif // LayoutBlock_h |
| OLD | NEW |