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 13 matching lines...) Expand all Loading... |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef CaretDisplayItemClient_h | 27 #ifndef CaretDisplayItemClient_h |
28 #define CaretDisplayItemClient_h | 28 #define CaretDisplayItemClient_h |
29 | 29 |
30 #include "core/editing/PositionWithAffinity.h" | 30 #include "core/editing/PositionWithAffinity.h" |
31 #include "platform/geometry/IntRect.h" | 31 #include "platform/geometry/IntRect.h" |
32 #include "platform/geometry/LayoutRect.h" | 32 #include "platform/geometry/LayoutRect.h" |
33 #include "platform/graphics/paint/DisplayItem.h" | 33 #include "platform/graphics/paint/DisplayItem.h" |
34 #include "wtf/Noncopyable.h" | 34 #include "platform/wtf/Noncopyable.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class GraphicsContext; | 38 class GraphicsContext; |
39 class LayoutBlock; | 39 class LayoutBlock; |
40 struct PaintInvalidatorContext; | 40 struct PaintInvalidatorContext; |
41 | 41 |
42 class CaretDisplayItemClient final : public DisplayItemClient { | 42 class CaretDisplayItemClient final : public DisplayItemClient { |
43 WTF_MAKE_NONCOPYABLE(CaretDisplayItemClient); | 43 WTF_MAKE_NONCOPYABLE(CaretDisplayItemClient); |
44 | 44 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // to invalidate the caret in the previous layout block. | 103 // to invalidate the caret in the previous layout block. |
104 const LayoutBlock* previous_layout_block_ = nullptr; | 104 const LayoutBlock* previous_layout_block_ = nullptr; |
105 LayoutRect visual_rect_in_previous_layout_block_; | 105 LayoutRect visual_rect_in_previous_layout_block_; |
106 | 106 |
107 bool needs_paint_invalidation_ = false; | 107 bool needs_paint_invalidation_ = false; |
108 }; | 108 }; |
109 | 109 |
110 } // namespace blink | 110 } // namespace blink |
111 | 111 |
112 #endif // CaretDisplayItemClient_h | 112 #endif // CaretDisplayItemClient_h |
OLD | NEW |