| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInC
ontainer, const LayoutPoint& accumulatedOffset) const; | 351 bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInC
ontainer, const LayoutPoint& accumulatedOffset) const; |
| 352 | 352 |
| 353 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; | 353 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; |
| 354 | 354 |
| 355 bool isSelectionRoot() const; | 355 bool isSelectionRoot() const; |
| 356 | 356 |
| 357 public: | 357 public: |
| 358 bool hasCursorCaret() const; | 358 bool hasCursorCaret() const; |
| 359 bool hasDragCaret() const; | 359 bool hasDragCaret() const; |
| 360 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); } | 360 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); } |
| 361 void invalidateCaret() const; |
| 362 |
| 363 protected: |
| 364 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
| 361 | 365 |
| 362 private: | 366 private: |
| 363 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) final; | 367 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) final; |
| 364 bool isInlineBoxWrapperActuallyChild() const; | 368 bool isInlineBoxWrapperActuallyChild() const; |
| 365 | 369 |
| 366 Position positionForBox(InlineBox*, bool start = true) const; | 370 Position positionForBox(InlineBox*, bool start = true) const; |
| 367 | 371 |
| 368 // End helper functions and structs used by layoutBlockChildren. | 372 // End helper functions and structs used by layoutBlockChildren. |
| 369 | 373 |
| 370 void removeFromGlobalMaps(); | 374 void removeFromGlobalMaps(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // This is necessary for now for interoperability between the old and new | 422 // This is necessary for now for interoperability between the old and new |
| 419 // layout code. Primarily for calling layoutPositionedObjects at the moment. | 423 // layout code. Primarily for calling layoutPositionedObjects at the moment. |
| 420 friend class NGBox; | 424 friend class NGBox; |
| 421 }; | 425 }; |
| 422 | 426 |
| 423 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 427 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 424 | 428 |
| 425 } // namespace blink | 429 } // namespace blink |
| 426 | 430 |
| 427 #endif // LayoutBlock_h | 431 #endif // LayoutBlock_h |
| OLD | NEW |