| 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 20 matching lines...) Expand all Loading... |
| 31 public: | 31 public: |
| 32 virtual ~RenderWidget(); | 32 virtual ~RenderWidget(); |
| 33 | 33 |
| 34 Widget* widget() const; | 34 Widget* widget() const; |
| 35 | 35 |
| 36 void updateOnWidgetChange(); | 36 void updateOnWidgetChange(); |
| 37 void updateWidgetPosition(); | 37 void updateWidgetPosition(); |
| 38 void widgetPositionsUpdated(); | 38 void widgetPositionsUpdated(); |
| 39 | 39 |
| 40 void setIsOverlapped(bool); | 40 void setIsOverlapped(bool); |
| 41 | 41 #if !ENABLE(OILPAN) |
| 42 void ref() { ++m_refCount; } | 42 void ref() { ++m_refCount; } |
| 43 void deref(); | 43 void deref(); |
| 44 | 44 #endif |
| 45 virtual bool isWidget() const OVERRIDE FINAL { return true; } | 45 virtual bool isWidget() const OVERRIDE FINAL { return true; } |
| 46 bool updateWidgetGeometry(); | 46 bool updateWidgetGeometry(); |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 explicit RenderWidget(Element*); | 49 explicit RenderWidget(Element*); |
| 50 | 50 |
| 51 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; | 51 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE FINAL; |
| 52 virtual void layout() OVERRIDE; | 52 virtual void layout() OVERRIDE; |
| 53 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; | 53 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| 54 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const OVERRID
E FINAL; | 54 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const OVERRID
E FINAL; |
| 55 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; | 55 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE; |
| 56 | 56 |
| 57 virtual void paintContents(PaintInfo&, const LayoutPoint&); | 57 virtual void paintContents(PaintInfo&, const LayoutPoint&); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 virtual void willBeDestroyed() OVERRIDE FINAL; | 60 virtual void willBeDestroyed() OVERRIDE FINAL; |
| 61 virtual void destroy() OVERRIDE FINAL; | 61 virtual void destroy() OVERRIDE FINAL; |
| 62 | 62 |
| 63 bool setWidgetGeometry(const LayoutRect&); | 63 bool setWidgetGeometry(const LayoutRect&); |
| 64 | 64 #if !ENABLE(OILPAN) |
| 65 int m_refCount; | 65 int m_refCount; |
| 66 #endif |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); | 69 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderWidget, isWidget()); |
| 69 | 70 |
| 70 } // namespace blink | 71 } // namespace blink |
| 71 | 72 |
| 72 #endif // RenderWidget_h | 73 #endif // RenderWidget_h |
| OLD | NEW |