| 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. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), | 338 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), |
| 339 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() | 339 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() |
| 340 // is called the same number of times. | 340 // is called the same number of times. |
| 341 static void startDelayUpdateScrollInfo(); | 341 static void startDelayUpdateScrollInfo(); |
| 342 static void finishDelayUpdateScrollInfo(); | 342 static void finishDelayUpdateScrollInfo(); |
| 343 | 343 |
| 344 void updateScrollInfoAfterLayout(); | 344 void updateScrollInfoAfterLayout(); |
| 345 | 345 |
| 346 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 346 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
| 347 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 347 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
| 348 void updateFromStyle() override; |
| 349 |
| 350 // Returns true if non-visible overflow should be respected. Otherwise hasOv
erflowClip() will be |
| 351 // false and we won't create scrollable area for this object even if overflo
w is non-visible. |
| 352 virtual bool allowsOverflowClip() const; |
| 348 | 353 |
| 349 virtual bool hasLineIfEmpty() const; | 354 virtual bool hasLineIfEmpty() const; |
| 350 | 355 |
| 351 bool simplifiedLayout(); | 356 bool simplifiedLayout(); |
| 352 virtual void simplifiedNormalFlowLayout(); | 357 virtual void simplifiedNormalFlowLayout(); |
| 353 | 358 |
| 354 public: | 359 public: |
| 355 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false); | 360 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool = false); |
| 356 protected: | 361 protected: |
| 357 virtual void addOverflowFromChildren(); | 362 virtual void addOverflowFromChildren(); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // FIXME: This is temporary as we move code that accesses block flow | 506 // FIXME: This is temporary as we move code that accesses block flow |
| 502 // member variables out of LayoutBlock and into LayoutBlockFlow. | 507 // member variables out of LayoutBlock and into LayoutBlockFlow. |
| 503 friend class LayoutBlockFlow; | 508 friend class LayoutBlockFlow; |
| 504 }; | 509 }; |
| 505 | 510 |
| 506 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 511 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 507 | 512 |
| 508 } // namespace blink | 513 } // namespace blink |
| 509 | 514 |
| 510 #endif // LayoutBlock_h | 515 #endif // LayoutBlock_h |
| OLD | NEW |