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 16 matching lines...) Expand all Loading... |
27 #include "core/editing/VisibleUnits.h" | 27 #include "core/editing/VisibleUnits.h" |
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/compositing/CompositedLayerMapping.h" | 38 #include "core/layout/compositing/CompositedLayerMapping.h" |
38 #include "core/layout/compositing/LayerCompositor.h" | 39 #include "core/layout/compositing/LayerCompositor.h" |
39 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
40 #include "core/paint/ViewPainter.h" | 41 #include "core/paint/ViewPainter.h" |
41 #include "core/rendering/RenderPart.h" | |
42 #include "core/rendering/RenderQuote.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 |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 const LayoutObject* RenderView::pushMappingToContainer(const LayoutLayerModelObj
ect* ancestorToStopAt, LayoutGeometryMap& geometryMap) const | 259 const LayoutObject* RenderView::pushMappingToContainer(const LayoutLayerModelObj
ect* ancestorToStopAt, LayoutGeometryMap& geometryMap) const |
260 { | 260 { |
261 LayoutSize offsetForFixedPosition; | 261 LayoutSize offsetForFixedPosition; |
262 LayoutSize offset; | 262 LayoutSize offset; |
263 LayoutObject* container = 0; | 263 LayoutObject* container = 0; |
264 | 264 |
265 if (m_frameView) | 265 if (m_frameView) |
266 offsetForFixedPosition = LayoutSize(m_frameView->scrollOffsetForViewport
ConstrainedObjects()); | 266 offsetForFixedPosition = LayoutSize(m_frameView->scrollOffsetForViewport
ConstrainedObjects()); |
267 | 267 |
268 if (geometryMap.mapCoordinatesFlags() & TraverseDocumentBoundaries) { | 268 if (geometryMap.mapCoordinatesFlags() & TraverseDocumentBoundaries) { |
269 if (RenderPart* parentDocRenderer = frame()->ownerRenderer()) { | 269 if (LayoutPart* parentDocRenderer = frame()->ownerRenderer()) { |
270 offset = -LayoutSize(m_frameView->scrollOffset()); | 270 offset = -LayoutSize(m_frameView->scrollOffset()); |
271 offset += parentDocRenderer->contentBoxOffset(); | 271 offset += parentDocRenderer->contentBoxOffset(); |
272 container = parentDocRenderer; | 272 container = parentDocRenderer; |
273 } | 273 } |
274 } | 274 } |
275 | 275 |
276 // If a container was specified, and was not 0 or the RenderView, then we | 276 // If a container was specified, and was not 0 or the RenderView, then we |
277 // should have found it by now unless we're traversing to a parent document. | 277 // should have found it by now unless we're traversing to a parent document. |
278 ASSERT_ARG(ancestorToStopAt, !ancestorToStopAt || ancestorToStopAt == this |
| container); | 278 ASSERT_ARG(ancestorToStopAt, !ancestorToStopAt || ancestorToStopAt == this |
| container); |
279 | 279 |
(...skipping 701 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 |