| 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 23 matching lines...) Expand all Loading... |
| 34 class RenderLayerCompositor; | 34 class RenderLayerCompositor; |
| 35 | 35 |
| 36 // The root of the render tree, corresponding to the CSS initial containing bloc
k. | 36 // The root of the render tree, corresponding to the CSS initial containing bloc
k. |
| 37 // It's dimensions match that of the logical viewport (which may be different fr
om | 37 // It's dimensions match that of the logical viewport (which may be different fr
om |
| 38 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) | 38 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) |
| 39 // relative to the document (and so isn't necessarily in view). | 39 // relative to the document (and so isn't necessarily in view). |
| 40 class RenderView final : public RenderBlockFlow { | 40 class RenderView final : public RenderBlockFlow { |
| 41 public: | 41 public: |
| 42 explicit RenderView(Document*); | 42 explicit RenderView(Document*); |
| 43 virtual ~RenderView(); | 43 virtual ~RenderView(); |
| 44 virtual void trace(Visitor*) override; | |
| 45 | 44 |
| 46 bool hitTest(const HitTestRequest&, HitTestResult&); | 45 bool hitTest(const HitTestRequest&, HitTestResult&); |
| 47 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 46 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
| 48 | 47 |
| 49 // Returns the total count of calls to HitTest, for testing. | 48 // Returns the total count of calls to HitTest, for testing. |
| 50 unsigned hitTestCount() const { return m_hitTestCount; } | 49 unsigned hitTestCount() const { return m_hitTestCount; } |
| 51 | 50 |
| 52 virtual const char* renderName() const override { return "RenderView"; } | 51 virtual const char* renderName() const override { return "RenderView"; } |
| 53 | 52 |
| 54 virtual bool isRenderView() const override { return true; } | 53 virtual bool isRenderView() const override { return true; } |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 187 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 189 } | 188 } |
| 190 private: | 189 private: |
| 191 const PaintInvalidationState* m_paintInvalidationState; | 190 const PaintInvalidationState* m_paintInvalidationState; |
| 192 bool m_didDisable; | 191 bool m_didDisable; |
| 193 }; | 192 }; |
| 194 | 193 |
| 195 } // namespace blink | 194 } // namespace blink |
| 196 | 195 |
| 197 #endif // RenderView_h | 196 #endif // RenderView_h |
| OLD | NEW |