| 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 10 matching lines...) Expand all Loading... |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #ifndef LayoutPart_h | 23 #ifndef LayoutPart_h |
| 24 #define LayoutPart_h | 24 #define LayoutPart_h |
| 25 | 25 |
| 26 #include "core/layout/LayoutReplaced.h" | 26 #include "core/layout/LayoutReplaced.h" |
| 27 #include "platform/Widget.h" | 27 #include "platform/Widget.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 // Renderer for frames via RenderFrame and LayoutIFrame, and plug-ins via Layout
EmbeddedObject. | 31 // Renderer for frames via LayoutFrame and LayoutIFrame, and plug-ins via Layout
EmbeddedObject. |
| 32 class LayoutPart : public LayoutReplaced { | 32 class LayoutPart : public LayoutReplaced { |
| 33 public: | 33 public: |
| 34 explicit LayoutPart(Element*); | 34 explicit LayoutPart(Element*); |
| 35 virtual ~LayoutPart(); | 35 virtual ~LayoutPart(); |
| 36 | 36 |
| 37 bool requiresAcceleratedCompositing() const; | 37 bool requiresAcceleratedCompositing() const; |
| 38 | 38 |
| 39 virtual bool needsPreferredWidthsRecalculation() const override final; | 39 virtual bool needsPreferredWidthsRecalculation() const override final; |
| 40 | 40 |
| 41 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; | 41 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 72 bool nodeAtPointOverWidget(const HitTestRequest&, HitTestResult&, const HitT
estLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestA
ction); | 72 bool nodeAtPointOverWidget(const HitTestRequest&, HitTestResult&, const HitT
estLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestA
ction); |
| 73 | 73 |
| 74 int m_refCount; | 74 int m_refCount; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); | 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // LayoutPart_h | 81 #endif // LayoutPart_h |
| OLD | NEW |