| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // A position in HTMLTextFromControlElement is a typical example. | 50 // A position in HTMLTextFromControlElement is a typical example. |
| 51 static LayoutRect computeCaretRect(const PositionWithAffinity& caretPosition); | 51 static LayoutRect computeCaretRect(const PositionWithAffinity& caretPosition); |
| 52 | 52 |
| 53 void paintCaret(Node*, | 53 void paintCaret(Node*, |
| 54 GraphicsContext&, | 54 GraphicsContext&, |
| 55 const LayoutRect& caretLocalRect, | 55 const LayoutRect& caretLocalRect, |
| 56 const LayoutPoint&, | 56 const LayoutPoint&, |
| 57 DisplayItem::Type); | 57 DisplayItem::Type); |
| 58 | 58 |
| 59 static LayoutBlock* caretLayoutObject(Node*); | 59 static LayoutBlock* caretLayoutObject(Node*); |
| 60 void invalidateLocalCaretRect(Node*, const LayoutRect&); | |
| 61 | 60 |
| 62 // DisplayItemClient methods. | 61 // DisplayItemClient methods. |
| 63 LayoutRect visualRect() const final; | 62 LayoutRect visualRect() const final; |
| 64 String debugName() const final; | 63 String debugName() const final; |
| 65 | 64 |
| 65 void setVisualRect(const LayoutRect& r) { m_visualRect = r; } |
| 66 |
| 66 private: | 67 private: |
| 67 LayoutRect m_visualRect; | 68 LayoutRect m_visualRect; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace blink | 71 } // namespace blink |
| 71 | 72 |
| 72 #endif // CaretDisplayItemClient_h | 73 #endif // CaretDisplayItemClient_h |
| OLD | NEW |