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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 bool FrameView::s_inPaintContents = false; | 91 bool FrameView::s_inPaintContents = false; |
92 | 92 |
93 // The maximum number of updateWidgets iterations that should be done before ret
urning. | 93 // The maximum number of updateWidgets iterations that should be done before ret
urning. |
94 static const unsigned maxUpdateWidgetsIterations = 2; | 94 static const unsigned maxUpdateWidgetsIterations = 2; |
95 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; | 95 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; |
96 | 96 |
97 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay
er* layer, bool isRelayoutingSubtree, bool didFullRepaint) | 97 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay
er* layer, bool isRelayoutingSubtree, bool didFullRepaint) |
98 { | 98 { |
99 RenderLayer::UpdateLayerPositionsFlags flags = didFullRepaint ? RenderLayer:
:NeedsFullRepaintInBacking : RenderLayer::CheckForRepaint; | 99 RenderLayer::UpdateLayerPositionsFlags flags = didFullRepaint ? RenderLayer:
:NeedsFullRepaintInBacking : RenderLayer::CheckForRepaint; |
100 | 100 |
101 if (isRelayoutingSubtree && layer->isPaginated()) | 101 if (isRelayoutingSubtree && (layer->isPaginated() || layer->enclosingPaginat
ionLayer())) |
102 flags |= RenderLayer::UpdatePagination; | 102 flags |= RenderLayer::UpdatePagination; |
103 | 103 |
104 return flags; | 104 return flags; |
105 } | 105 } |
106 | 106 |
107 class FrameViewLayoutStateMaintainer { | 107 class FrameViewLayoutStateMaintainer { |
108 WTF_MAKE_NONCOPYABLE(FrameViewLayoutStateMaintainer); | 108 WTF_MAKE_NONCOPYABLE(FrameViewLayoutStateMaintainer); |
109 public: | 109 public: |
110 FrameViewLayoutStateMaintainer(RenderObject& root, bool inSubtreeLayout) | 110 FrameViewLayoutStateMaintainer(RenderObject& root, bool inSubtreeLayout) |
111 : m_view(*root.view()) | 111 : m_view(*root.view()) |
(...skipping 3164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3276 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3276 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
3277 { | 3277 { |
3278 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3278 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3279 if (AXObjectCache* cache = axObjectCache()) { | 3279 if (AXObjectCache* cache = axObjectCache()) { |
3280 cache->remove(scrollbar); | 3280 cache->remove(scrollbar); |
3281 cache->handleScrollbarUpdate(this); | 3281 cache->handleScrollbarUpdate(this); |
3282 } | 3282 } |
3283 } | 3283 } |
3284 | 3284 |
3285 } // namespace WebCore | 3285 } // namespace WebCore |
OLD | NEW |