| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 USING_GARBAGE_COLLECTED_MIXIN(DragCaret); | 43 USING_GARBAGE_COLLECTED_MIXIN(DragCaret); |
| 44 | 44 |
| 45 public: | 45 public: |
| 46 static DragCaret* create(); | 46 static DragCaret* create(); |
| 47 | 47 |
| 48 virtual ~DragCaret(); | 48 virtual ~DragCaret(); |
| 49 | 49 |
| 50 // Paint invalidation methods delegating to CaretDisplayItemClient. | 50 // Paint invalidation methods delegating to CaretDisplayItemClient. |
| 51 void clearPreviousVisualRect(const LayoutBlock&); | 51 void clearPreviousVisualRect(const LayoutBlock&); |
| 52 void layoutBlockWillBeDestroyed(const LayoutBlock&); | 52 void layoutBlockWillBeDestroyed(const LayoutBlock&); |
| 53 void updateStyleAndLayoutIfNeeded(); | 53 void updateForPaintInvalidation(); |
| 54 void invalidatePaintIfNeeded(const LayoutBlock&, | 54 void invalidatePaintIfNeeded(const LayoutBlock&, |
| 55 const PaintInvalidatorContext&, | 55 const PaintInvalidatorContext&, |
| 56 PaintInvalidationReason); | 56 PaintInvalidationReason); |
| 57 | 57 |
| 58 bool shouldPaintCaret(const LayoutBlock&) const; | 58 bool shouldPaintCaret(const LayoutBlock&) const; |
| 59 void paintDragCaret(const LocalFrame*, | 59 void paintDragCaret(const LocalFrame*, |
| 60 GraphicsContext&, | 60 GraphicsContext&, |
| 61 const LayoutPoint&) const; | 61 const LayoutPoint&) const; |
| 62 | 62 |
| 63 bool isContentRichlyEditable() const; | 63 bool isContentRichlyEditable() const; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 76 void nodeChildrenWillBeRemoved(ContainerNode&) final; | 76 void nodeChildrenWillBeRemoved(ContainerNode&) final; |
| 77 void nodeWillBeRemoved(Node&) final; | 77 void nodeWillBeRemoved(Node&) final; |
| 78 | 78 |
| 79 PositionWithAffinity m_position; | 79 PositionWithAffinity m_position; |
| 80 const std::unique_ptr<CaretDisplayItemClient> m_displayItemClient; | 80 const std::unique_ptr<CaretDisplayItemClient> m_displayItemClient; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // DragCaret_h | 85 #endif // DragCaret_h |
| OLD | NEW |