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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInC
ontainer, const LayoutPoint& accumulatedOffset) const; | 413 bool isPointInOverflowControl(HitTestResult&, const LayoutPoint& locationInC
ontainer, const LayoutPoint& accumulatedOffset) const; |
414 | 414 |
415 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; | 415 void computeBlockPreferredLogicalWidths(LayoutUnit& minLogicalWidth, LayoutU
nit& maxLogicalWidth) const; |
416 | 416 |
417 LayoutObject* hoverAncestor() const final; | 417 LayoutObject* hoverAncestor() const final; |
418 void updateDragState(bool dragOn) final; | 418 void updateDragState(bool dragOn) final; |
419 void childBecameNonInline(LayoutObject* child) final; | 419 void childBecameNonInline(LayoutObject* child) final; |
420 | 420 |
421 bool isSelectionRoot() const; | 421 bool isSelectionRoot() const; |
422 | 422 |
423 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c
onst override; | |
424 void absoluteQuads(Vector<FloatQuad>&) const override; | |
425 | |
426 public: | 423 public: |
427 bool hasCursorCaret() const; | 424 bool hasCursorCaret() const; |
428 bool hasDragCaret() const; | 425 bool hasDragCaret() const; |
429 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); } | 426 bool hasCaret() const { return hasCursorCaret() || hasDragCaret(); } |
430 | 427 |
431 private: | 428 private: |
432 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) final; | 429 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt
hToEndOfLine = nullptr) final; |
433 bool isInlineBoxWrapperActuallyChild() const; | 430 bool isInlineBoxWrapperActuallyChild() const; |
434 | 431 |
435 Position positionForBox(InlineBox*, bool start = true) const; | 432 Position positionForBox(InlineBox*, bool start = true) const; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // FIXME: This is temporary as we move code that accesses block flow | 489 // FIXME: This is temporary as we move code that accesses block flow |
493 // member variables out of LayoutBlock and into LayoutBlockFlow. | 490 // member variables out of LayoutBlock and into LayoutBlockFlow. |
494 friend class LayoutBlockFlow; | 491 friend class LayoutBlockFlow; |
495 }; | 492 }; |
496 | 493 |
497 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 494 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
498 | 495 |
499 } // namespace blink | 496 } // namespace blink |
500 | 497 |
501 #endif // LayoutBlock_h | 498 #endif // LayoutBlock_h |
OLD | NEW |