| 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 29 matching lines...) Expand all Loading... |
| 40 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) | 40 // the visible viewport in fixed-layout mode), and it is always at position (0,0
) |
| 41 // relative to the document (and so isn't necessarily in view). | 41 // relative to the document (and so isn't necessarily in view). |
| 42 class RenderView FINAL : public RenderBlockFlow { | 42 class RenderView FINAL : public RenderBlockFlow { |
| 43 public: | 43 public: |
| 44 explicit RenderView(Document*); | 44 explicit RenderView(Document*); |
| 45 virtual ~RenderView(); | 45 virtual ~RenderView(); |
| 46 | 46 |
| 47 bool hitTest(const HitTestRequest&, HitTestResult&); | 47 bool hitTest(const HitTestRequest&, HitTestResult&); |
| 48 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); | 48 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); |
| 49 | 49 |
| 50 // Returns the total count of calls to HitTest, for testing. |
| 51 unsigned hitTestCount() const { return m_hitTestCount; } |
| 52 |
| 50 virtual const char* renderName() const OVERRIDE { return "RenderView"; } | 53 virtual const char* renderName() const OVERRIDE { return "RenderView"; } |
| 51 | 54 |
| 52 virtual bool isRenderView() const OVERRIDE { return true; } | 55 virtual bool isRenderView() const OVERRIDE { return true; } |
| 53 | 56 |
| 54 virtual LayerType layerTypeRequired() const OVERRIDE { return NormalLayer; } | 57 virtual LayerType layerTypeRequired() const OVERRIDE { return NormalLayer; } |
| 55 | 58 |
| 56 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 59 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
| 57 | 60 |
| 58 virtual void layout() OVERRIDE; | 61 virtual void layout() OVERRIDE; |
| 59 virtual void updateLogicalWidth() OVERRIDE; | 62 virtual void updateLogicalWidth() OVERRIDE; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 199 |
| 197 LayoutUnit m_pageLogicalHeight; | 200 LayoutUnit m_pageLogicalHeight; |
| 198 bool m_pageLogicalHeightChanged; | 201 bool m_pageLogicalHeightChanged; |
| 199 LayoutState* m_layoutState; | 202 LayoutState* m_layoutState; |
| 200 OwnPtr<RenderLayerCompositor> m_compositor; | 203 OwnPtr<RenderLayerCompositor> m_compositor; |
| 201 OwnPtr<FlowThreadController> m_flowThreadController; | 204 OwnPtr<FlowThreadController> m_flowThreadController; |
| 202 RefPtr<IntervalArena> m_intervalArena; | 205 RefPtr<IntervalArena> m_intervalArena; |
| 203 | 206 |
| 204 RenderQuote* m_renderQuoteHead; | 207 RenderQuote* m_renderQuoteHead; |
| 205 unsigned m_renderCounterCount; | 208 unsigned m_renderCounterCount; |
| 209 |
| 210 unsigned m_hitTestCount; |
| 206 }; | 211 }; |
| 207 | 212 |
| 208 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); | 213 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderView, isRenderView()); |
| 209 | 214 |
| 210 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms | 215 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms |
| 211 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render | 216 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the render |
| 212 // tree during layout in ways that can trigger repaint of a non-child (e.g. when
a list item | 217 // tree during layout in ways that can trigger repaint of a non-child (e.g. when
a list item |
| 213 // moves its list marker around). Note that even when disabled, LayoutState is s
till used to | 218 // moves its list marker around). Note that even when disabled, LayoutState is s
till used to |
| 214 // store layoutDelta. | 219 // store layoutDelta. |
| 215 class ForceHorriblySlowRectMapping { | 220 class ForceHorriblySlowRectMapping { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 236 RenderView& m_view; | 241 RenderView& m_view; |
| 237 bool m_didDisable; | 242 bool m_didDisable; |
| 238 #if ASSERT_ENABLED | 243 #if ASSERT_ENABLED |
| 239 LayoutState* m_layoutState; | 244 LayoutState* m_layoutState; |
| 240 #endif | 245 #endif |
| 241 }; | 246 }; |
| 242 | 247 |
| 243 } // namespace WebCore | 248 } // namespace WebCore |
| 244 | 249 |
| 245 #endif // RenderView_h | 250 #endif // RenderView_h |
| OLD | NEW |