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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 337 |
338 // Delay update scrollbar until finishDelayUpdateScrollInfo() will be | 338 // Delay update scrollbar until finishDelayUpdateScrollInfo() will be |
339 // called. This function is used when a flexbox is laying out its | 339 // called. This function is used when a flexbox is laying out its |
340 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), | 340 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), |
341 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() | 341 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() |
342 // is called the same number of times. | 342 // is called the same number of times. |
343 // finishDelayUpdateScrollInfo returns true when it marked something for lay
out. | 343 // finishDelayUpdateScrollInfo returns true when it marked something for lay
out. |
344 static void startDelayUpdateScrollInfo(); | 344 static void startDelayUpdateScrollInfo(); |
345 static bool finishDelayUpdateScrollInfo(SubtreeLayoutScope*); | 345 static bool finishDelayUpdateScrollInfo(SubtreeLayoutScope*); |
346 | 346 |
347 void updateScrollInfoAfterLayout(); | 347 void updateAfterLayout(); |
348 | 348 |
349 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 349 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
350 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 350 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
351 void updateFromStyle() override; | 351 void updateFromStyle() override; |
352 | 352 |
353 // Returns true if non-visible overflow should be respected. Otherwise hasOv
erflowClip() will be | 353 // Returns true if non-visible overflow should be respected. Otherwise hasOv
erflowClip() will be |
354 // false and we won't create scrollable area for this object even if overflo
w is non-visible. | 354 // false and we won't create scrollable area for this object even if overflo
w is non-visible. |
355 virtual bool allowsOverflowClip() const; | 355 virtual bool allowsOverflowClip() const; |
356 | 356 |
357 virtual bool hasLineIfEmpty() const; | 357 virtual bool hasLineIfEmpty() const; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 // FIXME: This is temporary as we move code that accesses block flow | 510 // FIXME: This is temporary as we move code that accesses block flow |
511 // member variables out of LayoutBlock and into LayoutBlockFlow. | 511 // member variables out of LayoutBlock and into LayoutBlockFlow. |
512 friend class LayoutBlockFlow; | 512 friend class LayoutBlockFlow; |
513 }; | 513 }; |
514 | 514 |
515 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 515 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
516 | 516 |
517 } // namespace blink | 517 } // namespace blink |
518 | 518 |
519 #endif // LayoutBlock_h | 519 #endif // LayoutBlock_h |
OLD | NEW |