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) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
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 17 matching lines...) Expand all Loading... |
28 #include "core/frame/LocalFrame.h" | 28 #include "core/frame/LocalFrame.h" |
29 #include "core/html/HTMLFrameOwnerElement.h" | 29 #include "core/html/HTMLFrameOwnerElement.h" |
30 #include "core/html/HTMLIFrameElement.h" | 30 #include "core/html/HTMLIFrameElement.h" |
31 #include "core/html/HTMLTextFormControlElement.h" | 31 #include "core/html/HTMLTextFormControlElement.h" |
32 #include "core/layout/ColumnInfo.h" | 32 #include "core/layout/ColumnInfo.h" |
33 #include "core/layout/HitTestResult.h" | 33 #include "core/layout/HitTestResult.h" |
34 #include "core/layout/Layer.h" | 34 #include "core/layout/Layer.h" |
35 #include "core/layout/LayoutFlowThread.h" | 35 #include "core/layout/LayoutFlowThread.h" |
36 #include "core/layout/LayoutGeometryMap.h" | 36 #include "core/layout/LayoutGeometryMap.h" |
37 #include "core/layout/LayoutPart.h" | 37 #include "core/layout/LayoutPart.h" |
| 38 #include "core/layout/LayoutQuote.h" |
38 #include "core/layout/compositing/CompositedLayerMapping.h" | 39 #include "core/layout/compositing/CompositedLayerMapping.h" |
39 #include "core/layout/compositing/LayerCompositor.h" | 40 #include "core/layout/compositing/LayerCompositor.h" |
40 #include "core/page/Page.h" | 41 #include "core/page/Page.h" |
41 #include "core/paint/ViewPainter.h" | 42 #include "core/paint/ViewPainter.h" |
42 #include "core/rendering/RenderQuote.h" | |
43 #include "core/rendering/RenderScrollbarPart.h" | 43 #include "core/rendering/RenderScrollbarPart.h" |
44 #include "core/svg/SVGDocumentExtensions.h" | 44 #include "core/svg/SVGDocumentExtensions.h" |
45 #include "platform/TraceEvent.h" | 45 #include "platform/TraceEvent.h" |
46 #include "platform/geometry/FloatQuad.h" | 46 #include "platform/geometry/FloatQuad.h" |
47 #include "platform/geometry/TransformState.h" | 47 #include "platform/geometry/TransformState.h" |
48 #include "platform/graphics/paint/DisplayItemList.h" | 48 #include "platform/graphics/paint/DisplayItemList.h" |
49 | 49 |
50 namespace blink { | 50 namespace blink { |
51 | 51 |
52 RenderView::RenderView(Document* document) | 52 RenderView::RenderView(Document* document) |
53 : RenderBlockFlow(document) | 53 : RenderBlockFlow(document) |
54 , m_frameView(document->view()) | 54 , m_frameView(document->view()) |
55 , m_selectionStart(nullptr) | 55 , m_selectionStart(nullptr) |
56 , m_selectionEnd(nullptr) | 56 , m_selectionEnd(nullptr) |
57 , m_selectionStartPos(-1) | 57 , m_selectionStartPos(-1) |
58 , m_selectionEndPos(-1) | 58 , m_selectionEndPos(-1) |
59 , m_pageLogicalHeight(0) | 59 , m_pageLogicalHeight(0) |
60 , m_pageLogicalHeightChanged(false) | 60 , m_pageLogicalHeightChanged(false) |
61 , m_layoutState(0) | 61 , m_layoutState(0) |
62 , m_renderQuoteHead(nullptr) | 62 , m_layoutQuoteHead(nullptr) |
63 , m_layoutCounterCount(0) | 63 , m_layoutCounterCount(0) |
64 , m_hitTestCount(0) | 64 , m_hitTestCount(0) |
65 { | 65 { |
66 // init LayoutObject attributes | 66 // init LayoutObject attributes |
67 setInline(false); | 67 setInline(false); |
68 | 68 |
69 m_minPreferredLogicalWidth = 0; | 69 m_minPreferredLogicalWidth = 0; |
70 m_maxPreferredLogicalWidth = 0; | 70 m_maxPreferredLogicalWidth = 0; |
71 | 71 |
72 setPreferredLogicalWidthsDirty(MarkOnlyThis); | 72 setPreferredLogicalWidthsDirty(MarkOnlyThis); |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 } | 981 } |
982 | 982 |
983 void RenderView::invalidateDisplayItemClients(DisplayItemList* displayItemList)
const | 983 void RenderView::invalidateDisplayItemClients(DisplayItemList* displayItemList)
const |
984 { | 984 { |
985 RenderBlockFlow::invalidateDisplayItemClients(displayItemList); | 985 RenderBlockFlow::invalidateDisplayItemClients(displayItemList); |
986 if (m_frameView) | 986 if (m_frameView) |
987 displayItemList->invalidate(m_frameView->displayItemClient()); | 987 displayItemList->invalidate(m_frameView->displayItemClient()); |
988 } | 988 } |
989 | 989 |
990 } // namespace blink | 990 } // namespace blink |
OLD | NEW |