OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 3941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3952 } | 3952 } |
3953 m_frameTimingRequestsDirty = false; | 3953 m_frameTimingRequestsDirty = false; |
3954 } | 3954 } |
3955 | 3955 |
3956 void FrameView::collectFrameTimingRequests(GraphicsLayerFrameTimingRequests& gra
phicsLayerTimingRequests) | 3956 void FrameView::collectFrameTimingRequests(GraphicsLayerFrameTimingRequests& gra
phicsLayerTimingRequests) |
3957 { | 3957 { |
3958 if (!m_frame->isLocalFrame()) | 3958 if (!m_frame->isLocalFrame()) |
3959 return; | 3959 return; |
3960 Frame* frame = m_frame.get(); | 3960 Frame* frame = m_frame.get(); |
3961 LocalFrame* localFrame = toLocalFrame(frame); | 3961 LocalFrame* localFrame = toLocalFrame(frame); |
3962 LayoutRect viewRect = localFrame->contentLayoutObject()->viewRect(); | 3962 LayoutRect viewRect = localFrame->contentLayoutItem().viewRect(); |
3963 const LayoutBoxModelObject& paintInvalidationContainer = localFrame->content
LayoutObject()->containerForPaintInvalidation(); | 3963 const LayoutBoxModelObject& paintInvalidationContainer = localFrame->content
LayoutObject()->containerForPaintInvalidation(); |
3964 // If the frame is being throttled, its compositing state may not be up to d
ate. | 3964 // If the frame is being throttled, its compositing state may not be up to d
ate. |
3965 if (!paintInvalidationContainer.enclosingLayer()->isAllowedToQueryCompositin
gState()) | 3965 if (!paintInvalidationContainer.enclosingLayer()->isAllowedToQueryCompositin
gState()) |
3966 return; | 3966 return; |
3967 const GraphicsLayer* graphicsLayer = paintInvalidationContainer.enclosingLay
er()->graphicsLayerBacking(); | 3967 const GraphicsLayer* graphicsLayer = paintInvalidationContainer.enclosingLay
er()->graphicsLayerBacking(); |
3968 | 3968 |
3969 if (!graphicsLayer) | 3969 if (!graphicsLayer) |
3970 return; | 3970 return; |
3971 | 3971 |
3972 PaintLayer::mapRectToPaintInvalidationBacking(*localFrame->contentLayoutObje
ct(), paintInvalidationContainer, viewRect); | 3972 PaintLayer::mapRectToPaintInvalidationBacking(*localFrame->contentLayoutObje
ct(), paintInvalidationContainer, viewRect); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4092 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4092 return m_hiddenForThrottling && m_crossOriginForThrottling; |
4093 } | 4093 } |
4094 | 4094 |
4095 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4095 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
4096 { | 4096 { |
4097 ASSERT(layoutView()); | 4097 ASSERT(layoutView()); |
4098 return *layoutView(); | 4098 return *layoutView(); |
4099 } | 4099 } |
4100 | 4100 |
4101 } // namespace blink | 4101 } // namespace blink |
OLD | NEW |