| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 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 29 matching lines...) Expand all Loading... |
| 40 { | 40 { |
| 41 } | 41 } |
| 42 | 42 |
| 43 RenderSelectionInfoBase(RenderObject* o) | 43 RenderSelectionInfoBase(RenderObject* o) |
| 44 : m_object(o) | 44 : m_object(o) |
| 45 , m_paintInvalidationContainer(o->containerForPaintInvalidation()) | 45 , m_paintInvalidationContainer(o->containerForPaintInvalidation()) |
| 46 , m_state(o->selectionState()) | 46 , m_state(o->selectionState()) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void trace(Visitor* visitor) | |
| 51 { | |
| 52 visitor->trace(m_object); | |
| 53 visitor->trace(m_paintInvalidationContainer); | |
| 54 } | |
| 55 | |
| 56 RenderObject* object() const { return m_object; } | 50 RenderObject* object() const { return m_object; } |
| 57 const RenderLayerModelObject* paintInvalidationContainer() const { return m_
paintInvalidationContainer; } | 51 const RenderLayerModelObject* paintInvalidationContainer() const { return m_
paintInvalidationContainer; } |
| 58 RenderObject::SelectionState state() const { return m_state; } | 52 RenderObject::SelectionState state() const { return m_state; } |
| 59 | 53 |
| 60 protected: | 54 protected: |
| 61 RawPtr<RenderObject> m_object; | 55 RawPtr<RenderObject> m_object; |
| 62 RawPtr<const RenderLayerModelObject> m_paintInvalidationContainer; | 56 RawPtr<const RenderLayerModelObject> m_paintInvalidationContainer; |
| 63 RenderObject::SelectionState m_state; | 57 RenderObject::SelectionState m_state; |
| 64 }; | 58 }; |
| 65 | 59 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 GapRects rects() const { return m_rects; } | 111 GapRects rects() const { return m_rects; } |
| 118 | 112 |
| 119 private: | 113 private: |
| 120 GapRects m_rects; // relative to paint invalidation container | 114 GapRects m_rects; // relative to paint invalidation container |
| 121 }; | 115 }; |
| 122 | 116 |
| 123 } // namespace blink | 117 } // namespace blink |
| 124 | 118 |
| 125 | 119 |
| 126 #endif // RenderSelectionInfo_h | 120 #endif // RenderSelectionInfo_h |
| OLD | NEW |