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 29 matching lines...) Expand all Loading... |
40 bool needsPreferredWidthsRecalculation() const final; | 40 bool needsPreferredWidthsRecalculation() const final; |
41 | 41 |
42 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
const LayoutPoint& accumulatedOffset, HitTestAction) override; | 42 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer,
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 // Returns true if the geometry changed. |
51 void widgetPositionsUpdated(); | |
52 bool updateWidgetGeometry(); | 51 bool updateWidgetGeometry(); |
53 | 52 |
| 53 // Notifies this object that all widgets on the page have been updated. |
| 54 void widgetGeometriesUpdated(); |
| 55 |
54 bool isLayoutPart() const final { return true; } | 56 bool isLayoutPart() const final { return true; } |
55 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const; | 57 virtual void paintContents(const PaintInfo&, const LayoutPoint&) const; |
56 | 58 |
57 bool isThrottledFrameView() const; | 59 bool isThrottledFrameView() const; |
58 | 60 |
59 protected: | 61 protected: |
60 PaintLayerType layerTypeRequired() const override; | 62 PaintLayerType layerTypeRequired() const override; |
61 | 63 |
62 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; | 64 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final; |
63 void layout() override; | 65 void layout() override; |
64 void paint(const PaintInfo&, const LayoutPoint&) const override; | 66 void paint(const PaintInfo&, const LayoutPoint&) const override; |
65 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; | 67 CursorDirective getCursor(const LayoutPoint&, Cursor&) const final; |
66 | 68 |
67 // Overridden to invalidate the child frame if any. | 69 // Overridden to invalidate the child frame if any. |
68 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; | 70 void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override; |
69 | 71 |
70 private: | 72 private: |
| 73 bool updateWidgetGeometryInternal(); |
71 CompositingReasons additionalCompositingReasons() const override; | 74 CompositingReasons additionalCompositingReasons() const override; |
72 | 75 |
73 void willBeDestroyed() final; | 76 void willBeDestroyed() final; |
74 void destroy() final; | 77 void destroy() final; |
75 | 78 |
76 bool setWidgetGeometry(const LayoutRect&); | 79 bool setWidgetGeometry(const LayoutRect&); |
77 | 80 |
78 bool nodeAtPointOverWidget(HitTestResult&, const HitTestLocation& locationIn
Container, const LayoutPoint& accumulatedOffset, HitTestAction); | 81 bool nodeAtPointOverWidget(HitTestResult&, const HitTestLocation& locationIn
Container, const LayoutPoint& accumulatedOffset, HitTestAction); |
79 | 82 |
80 int m_refCount; | 83 int m_refCount; |
81 }; | 84 }; |
82 | 85 |
83 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); | 86 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart()); |
84 | 87 |
85 } // namespace blink | 88 } // namespace blink |
86 | 89 |
87 #endif // LayoutPart_h | 90 #endif // LayoutPart_h |
OLD | NEW |