| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Renderer for frames via LayoutFrame and LayoutIFrame, and plugins via LayoutE
mbeddedObject. | 32 // Renderer for frames via LayoutFrame and LayoutIFrame, and plugins via LayoutE
mbeddedObject. |
| 33 class CORE_EXPORT LayoutPart : public LayoutReplaced { | 33 class CORE_EXPORT LayoutPart : public LayoutReplaced { |
| 34 public: | 34 public: |
| 35 explicit LayoutPart(Element*); | 35 explicit LayoutPart(Element*); |
| 36 virtual ~LayoutPart(); | 36 virtual ~LayoutPart(); |
| 37 | 37 |
| 38 bool requiresAcceleratedCompositing() const; | 38 bool requiresAcceleratedCompositing() const; |
| 39 | 39 |
| 40 virtual bool needsPreferredWidthsRecalculation() const override final; | 40 virtual bool needsPreferredWidthsRecalculation() const override final; |
| 41 | 41 |
| 42 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; | 42 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo
ntainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
| 43 | 43 |
| 44 void ref() { ++m_refCount; } | 44 void ref() { ++m_refCount; } |
| 45 void deref(); | 45 void deref(); |
| 46 | 46 |
| 47 Widget* widget() const; | 47 Widget* widget() const; |
| 48 | 48 |
| 49 void updateOnWidgetChange(); | 49 void updateOnWidgetChange(); |
| 50 void updateWidgetPosition(); | 50 void updateWidgetPosition(); |
| 51 void widgetPositionsUpdated(); | 51 void widgetPositionsUpdated(); |
| 52 bool updateWidgetGeometry(); | 52 bool updateWidgetGeometry(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 64 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const overrid
e final; | 64 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const overrid
e final; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 virtual CompositingReasons additionalCompositingReasons() const override; | 67 virtual CompositingReasons additionalCompositingReasons() const override; |
| 68 | 68 |
| 69 virtual void willBeDestroyed() override final; | 69 virtual void willBeDestroyed() override final; |
| 70 virtual void destroy() override final; | 70 virtual void destroy() override final; |
| 71 | 71 |
| 72 bool setWidgetGeometry(const LayoutRect&); | 72 bool setWidgetGeometry(const LayoutRect&); |
| 73 | 73 |
| 74 bool nodeAtPointOverWidget(const HitTestRequest&, HitTestResult&, const HitT
estLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestA
ction); | 74 bool nodeAtPointOverWidget(HitTestResult&, const HitTestLocation& locationIn
Container, const LayoutPoint& accumulatedOffset, HitTestAction); |
| 75 | 75 |
| 76 int m_refCount; | 76 int m_refCount; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); | 79 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); |
| 80 | 80 |
| 81 } // namespace blink | 81 } // namespace blink |
| 82 | 82 |
| 83 #endif // LayoutPart_h | 83 #endif // LayoutPart_h |
| OLD | NEW |