OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2009, 2010 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 UpdateSuspendScope(); | 47 UpdateSuspendScope(); |
48 ~UpdateSuspendScope(); | 48 ~UpdateSuspendScope(); |
49 }; | 49 }; |
50 | 50 |
51 protected: | 51 protected: |
52 explicit RenderWidget(Element*); | 52 explicit RenderWidget(Element*); |
53 | 53 |
54 void clearWidget(); | 54 void clearWidget(); |
55 | 55 |
56 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; | 56 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; |
57 virtual void layout(); | 57 virtual void layout() OVERRIDE; |
58 virtual void paint(PaintInfo&, const LayoutPoint&); | 58 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
59 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; | 59 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const OVERRID
E FINAL; |
60 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 60 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
61 | 61 |
62 virtual void paintContents(PaintInfo&, const LayoutPoint&); | 62 virtual void paintContents(PaintInfo&, const LayoutPoint&); |
63 | 63 |
64 private: | 64 private: |
65 virtual bool isWidget() const OVERRIDE FINAL { return true; } | 65 virtual bool isWidget() const OVERRIDE FINAL { return true; } |
66 | 66 |
67 virtual void willBeDestroyed() OVERRIDE FINAL; | 67 virtual void willBeDestroyed() OVERRIDE FINAL; |
68 virtual void destroy() OVERRIDE FINAL; | 68 virtual void destroy() OVERRIDE FINAL; |
69 | 69 |
70 bool setWidgetGeometry(const LayoutRect&); | 70 bool setWidgetGeometry(const LayoutRect&); |
71 bool updateWidgetGeometry(); | 71 bool updateWidgetGeometry(); |
72 | 72 |
73 RefPtr<Widget> m_widget; | 73 RefPtr<Widget> m_widget; |
74 FrameView* m_frameView; | 74 FrameView* m_frameView; |
75 IntRect m_clipRect; // The rectangle needs to remain correct after scrolling
, so it is stored in content view coordinates, and not clipped to window. | 75 IntRect m_clipRect; // The rectangle needs to remain correct after scrolling
, so it is stored in content view coordinates, and not clipped to window. |
76 int m_refCount; | 76 int m_refCount; |
77 }; | 77 }; |
78 | 78 |
79 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); | 79 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); |
80 | 80 |
81 } // namespace WebCore | 81 } // namespace WebCore |
82 | 82 |
83 #endif // RenderWidget_h | 83 #endif // RenderWidget_h |
OLD | NEW |