Chromium Code Reviews| Index: Source/core/rendering/RenderPart.h |
| diff --git a/Source/core/rendering/RenderPart.h b/Source/core/rendering/RenderPart.h |
| index c042860b81cf4ca050f17f31cac43addf004e972..f1ae07526612df13f4ae37203d89d22b1749a4bb 100644 |
| --- a/Source/core/rendering/RenderPart.h |
| +++ b/Source/core/rendering/RenderPart.h |
| @@ -23,12 +23,13 @@ |
| #ifndef RenderPart_h |
| #define RenderPart_h |
| -#include "core/rendering/RenderWidget.h" |
| +#include "core/rendering/RenderReplaced.h" |
| +#include "platform/Widget.h" |
| namespace blink { |
| // Renderer for frames via RenderFrame and RenderIFrame, and plug-ins via RenderEmbeddedObject. |
| -class RenderPart : public RenderWidget { |
| +class RenderPart : public RenderReplaced { |
| public: |
| explicit RenderPart(Element*); |
| virtual ~RenderPart(); |
| @@ -39,18 +40,51 @@ public: |
| virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVERRIDE; |
| +#if !ENABLE(OILPAN) |
| + void ref() { ++m_refCount; } |
| + void deref(); |
| +#endif |
| + |
| + Widget* widget() const; |
| + |
| + void updateOnWidgetChange(); |
| + void updateWidgetPosition(); |
| + void widgetPositionsUpdated(); |
| + |
| + bool updateWidgetGeometry(); |
| + |
| + virtual bool isWidget() const OVERRIDE FINAL { return true; } |
|
dsinclair
2014/10/07 14:15:12
Is this going to be removed? Can we file a followu
Zeeshan Qureshi
2014/10/10 19:32:39
Done. Since we're renaming and updating a lot more
|
| + |
| protected: |
| virtual LayerType layerTypeRequired() const OVERRIDE; |
| + virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE FINAL; |
| + virtual void layout() OVERRIDE; |
| + virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE; |
| + virtual void paintContents(PaintInfo&, const LayoutPoint&); |
| + virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const OVERRIDE FINAL; |
| + |
| private: |
| virtual bool isRenderPart() const OVERRIDE FINAL { return true; } |
| virtual const char* renderName() const OVERRIDE { return "RenderPart"; } |
| virtual CompositingReasons additionalCompositingReasons() const OVERRIDE; |
| + |
| + virtual void willBeDestroyed() OVERRIDE FINAL; |
| + virtual void destroy() OVERRIDE FINAL; |
| + |
| + bool setWidgetGeometry(const LayoutRect&); |
| + |
| + // TODO(zeeshanq): This was previously RenderWidget::nodeAtPoint(), find a better name. |
|
dsinclair
2014/10/07 14:15:12
From the usage, it looks like nodeAtPointInternal
Zeeshan Qureshi
2014/10/10 19:32:39
Done.
|
| + bool widgetAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
|
Julien - ping for review
2014/10/07 17:53:23
Not a fan of this name as I would expect that API
Zeeshan Qureshi
2014/10/10 19:32:39
nodeAtPointOverWidget sounds good.
|
| + |
| +#if !ENABLE(OILPAN) |
| + int m_refCount; |
| +#endif |
| }; |
| DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderPart, isRenderPart()); |
| -} |
| +} // namespace blink |
| -#endif |
| +#endif // RenderPart_h |