OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // The root of the render tree, corresponding to the CSS initial containing bloc
k. | 43 // The root of the render tree, corresponding to the CSS initial containing bloc
k. |
44 // It's dimensions match that of the logical viewport (which may be different fr
om | 44 // It's dimensions match that of the logical viewport (which may be different fr
om |
45 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) | 45 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) |
46 // relative to the document (and so isn't necessarily in view). | 46 // relative to the document (and so isn't necessarily in view). |
47 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { | 47 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { |
48 public: | 48 public: |
49 explicit LayoutView(Document*); | 49 explicit LayoutView(Document*); |
50 virtual ~LayoutView(); | 50 virtual ~LayoutView(); |
51 void willBeDestroyed() override; | 51 void willBeDestroyed() override; |
52 | 52 |
53 bool hitTest(const HitTestRequest&, HitTestResult&); | 53 bool hitTest(HitTestResult&); |
54 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 54 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
55 | 55 |
56 // Returns the total count of calls to HitTest, for testing. | 56 // Returns the total count of calls to HitTest, for testing. |
57 unsigned hitTestCount() const { return m_hitTestCount; } | 57 unsigned hitTestCount() const { return m_hitTestCount; } |
58 | 58 |
59 virtual const char* name() const override { return "LayoutView"; } | 59 virtual const char* name() const override { return "LayoutView"; } |
60 | 60 |
61 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } | 61 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } |
62 | 62 |
63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return
NormalDeprecatedPaintLayer; } | 63 virtual DeprecatedPaintLayerType layerTypeRequired() const override { return
NormalDeprecatedPaintLayer; } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 234 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
235 } | 235 } |
236 private: | 236 private: |
237 const PaintInvalidationState* m_paintInvalidationState; | 237 const PaintInvalidationState* m_paintInvalidationState; |
238 bool m_didDisable; | 238 bool m_didDisable; |
239 }; | 239 }; |
240 | 240 |
241 } // namespace blink | 241 } // namespace blink |
242 | 242 |
243 #endif // LayoutView_h | 243 #endif // LayoutView_h |
OLD | NEW |