| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 HitTestAction) override; | 46 HitTestAction) override; |
| 47 | 47 |
| 48 void ref() { ++m_refCount; } | 48 void ref() { ++m_refCount; } |
| 49 void deref(); | 49 void deref(); |
| 50 | 50 |
| 51 FrameViewBase* widget() const; | 51 FrameViewBase* widget() const; |
| 52 | 52 |
| 53 LayoutRect replacedContentRect() const final; | 53 LayoutRect replacedContentRect() const final; |
| 54 | 54 |
| 55 void updateOnWidgetChange(); | 55 void updateOnWidgetChange(); |
| 56 void updateWidgetGeometry(); | 56 void updateGeometry(); |
| 57 | 57 |
| 58 bool isLayoutPart() const final { return true; } | 58 bool isLayoutPart() const final { return true; } |
| 59 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const; | 59 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const; |
| 60 | 60 |
| 61 bool isThrottledFrameView() const; | 61 bool isThrottledFrameView() const; |
| 62 | 62 |
| 63 protected: | 63 protected: |
| 64 PaintLayerType layerTypeRequired() const override; | 64 PaintLayerType layerTypeRequired() const override; |
| 65 | 65 |
| 66 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; | 66 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; |
| 67 void layout() override; | 67 void layout() override; |
| 68 void paint(const PaintInfo&, const LayoutPoint&) const override; | 68 void paint(const PaintInfo&, const LayoutPoint&) const override; |
| 69 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; | 69 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; |
| 70 | 70 |
| 71 // Overridden to invalidate the child frame if any. | 71 // Overridden to invalidate the child frame if any. |
| 72 void invalidatePaintOfSubtreesIfNeeded( | 72 void invalidatePaintOfSubtreesIfNeeded( |
| 73 const PaintInvalidationState&) override; | 73 const PaintInvalidationState&) override; |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 void updateWidgetGeometryInternal(); | 76 void updateGeometryInternal(); |
| 77 CompositingReasons additionalCompositingReasons() const override; | 77 CompositingReasons additionalCompositingReasons() const override; |
| 78 | 78 |
| 79 void willBeDestroyed() final; | 79 void willBeDestroyed() final; |
| 80 void destroy() final; | 80 void destroy() final; |
| 81 | 81 |
| 82 bool nodeAtPointOverWidget(HitTestResult&, | 82 bool nodeAtPointOverWidget(HitTestResult&, |
| 83 const HitTestLocation& locationInContainer, | 83 const HitTestLocation& locationInContainer, |
| 84 const LayoutPoint& accumulatedOffset, | 84 const LayoutPoint& accumulatedOffset, |
| 85 HitTestAction); | 85 HitTestAction); |
| 86 | 86 |
| 87 int m_refCount; | 87 int m_refCount; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); | 90 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| 93 | 93 |
| 94 #endif // LayoutPart_h | 94 #endif // LayoutPart_h |
| OLD | NEW |