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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 LayoutUnit& max_logical_width) const; | 486 LayoutUnit& max_logical_width) const; |
487 | 487 |
488 public: | 488 public: |
489 bool ShouldPaintCursorCaret() const; | 489 bool ShouldPaintCursorCaret() const; |
490 bool ShouldPaintDragCaret() const; | 490 bool ShouldPaintDragCaret() const; |
491 bool ShouldPaintCarets() const { | 491 bool ShouldPaintCarets() const { |
492 return ShouldPaintCursorCaret() || ShouldPaintDragCaret(); | 492 return ShouldPaintCursorCaret() || ShouldPaintDragCaret(); |
493 } | 493 } |
494 | 494 |
495 protected: | 495 protected: |
496 PaintInvalidationReason InvalidatePaintIfNeeded( | 496 PaintInvalidationReason InvalidatePaint( |
497 const PaintInvalidationState&) override; | 497 const PaintInvalidationState&) override; |
498 PaintInvalidationReason InvalidatePaintIfNeeded( | 498 PaintInvalidationReason InvalidatePaint( |
499 const PaintInvalidatorContext&) const override; | 499 const PaintInvalidatorContext&) const override; |
500 | 500 |
501 void ClearPreviousVisualRects() override; | 501 void ClearPreviousVisualRects() override; |
502 | 502 |
503 private: | 503 private: |
504 LayoutRect LocalCaretRect( | 504 LayoutRect LocalCaretRect( |
505 InlineBox*, | 505 InlineBox*, |
506 int caret_offset, | 506 int caret_offset, |
507 LayoutUnit* extra_width_to_end_of_line = nullptr) final; | 507 LayoutUnit* extra_width_to_end_of_line = nullptr) final; |
508 bool IsInlineBoxWrapperActuallyChild() const; | 508 bool IsInlineBoxWrapperActuallyChild() const; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // TODO(lunalu): Temporary in order to ensure compatibility with existing | 570 // TODO(lunalu): Temporary in order to ensure compatibility with existing |
571 // layout test results. | 571 // layout test results. |
572 virtual void AdjustChildDebugRect(LayoutRect&) const {} | 572 virtual void AdjustChildDebugRect(LayoutRect&) const {} |
573 }; | 573 }; |
574 | 574 |
575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); | 575 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, IsLayoutBlock()); |
576 | 576 |
577 } // namespace blink | 577 } // namespace blink |
578 | 578 |
579 #endif // LayoutBlock_h | 579 #endif // LayoutBlock_h |
OLD | NEW |