| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // The root of the layout tree, corresponding to the CSS initial containing bloc
k. | 45 // The root of the layout tree, corresponding to the CSS initial containing bloc
k. |
| 46 // It's dimensions match that of the logical viewport (which may be different fr
om | 46 // It's dimensions match that of the logical viewport (which may be different fr
om |
| 47 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) | 47 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) |
| 48 // relative to the document (and so isn't necessarily in view). | 48 // relative to the document (and so isn't necessarily in view). |
| 49 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { | 49 class CORE_EXPORT LayoutView final : public LayoutBlockFlow { |
| 50 public: | 50 public: |
| 51 explicit LayoutView(Document*); | 51 explicit LayoutView(Document*); |
| 52 virtual ~LayoutView(); | 52 virtual ~LayoutView(); |
| 53 void willBeDestroyed() override; | 53 void willBeDestroyed() override; |
| 54 | 54 |
| 55 // hitTest() will update layout and style first while hitTestNoLayoutAndStyl
eUpdate() does not. |
| 55 bool hitTest(HitTestResult&); | 56 bool hitTest(HitTestResult&); |
| 57 bool hitTestNoLayoutAndStyleUpdate(HitTestResult&); |
| 56 | 58 |
| 57 // Returns the total count of calls to HitTest, for testing. | 59 // Returns the total count of calls to HitTest, for testing. |
| 58 unsigned hitTestCount() const { return m_hitTestCount; } | 60 unsigned hitTestCount() const { return m_hitTestCount; } |
| 59 unsigned hitTestCacheHits() const { return m_hitTestCacheHits; } | 61 unsigned hitTestCacheHits() const { return m_hitTestCacheHits; } |
| 60 | 62 |
| 61 void clearHitTestCache() { m_hitTestCache->clear(); } | 63 void clearHitTestCache() { m_hitTestCache->clear(); } |
| 62 | 64 |
| 63 virtual const char* name() const override { return "LayoutView"; } | 65 virtual const char* name() const override { return "LayoutView"; } |
| 64 | 66 |
| 65 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } | 67 virtual bool isOfType(LayoutObjectType type) const override { return type ==
LayoutObjectLayoutView || LayoutBlockFlow::isOfType(type); } |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 249 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 248 } | 250 } |
| 249 private: | 251 private: |
| 250 const PaintInvalidationState* m_paintInvalidationState; | 252 const PaintInvalidationState* m_paintInvalidationState; |
| 251 bool m_didDisable; | 253 bool m_didDisable; |
| 252 }; | 254 }; |
| 253 | 255 |
| 254 } // namespace blink | 256 } // namespace blink |
| 255 | 257 |
| 256 #endif // LayoutView_h | 258 #endif // LayoutView_h |
| OLD | NEW |