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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; | 93 static const double resourcePriorityUpdateDelayAfterScroll = 0.250; |
94 | 94 |
95 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay
er* layer, bool isRelayoutingSubtree, bool didFullRepaint) | 95 static RenderLayer::UpdateLayerPositionsFlags updateLayerPositionFlags(RenderLay
er* layer, bool isRelayoutingSubtree, bool didFullRepaint) |
96 { | 96 { |
97 RenderLayer::UpdateLayerPositionsFlags flags = RenderLayer::defaultFlags; | 97 RenderLayer::UpdateLayerPositionsFlags flags = RenderLayer::defaultFlags; |
98 | 98 |
99 if (didFullRepaint) { | 99 if (didFullRepaint) { |
100 flags &= ~RenderLayer::CheckForRepaint; | 100 flags &= ~RenderLayer::CheckForRepaint; |
101 flags |= RenderLayer::NeedsFullRepaintInBacking; | 101 flags |= RenderLayer::NeedsFullRepaintInBacking; |
102 } | 102 } |
103 if (isRelayoutingSubtree && layer->isPaginated()) | |
104 flags |= RenderLayer::UpdatePagination; | |
105 return flags; | 103 return flags; |
106 } | 104 } |
107 | 105 |
108 Pagination::Mode paginationModeForRenderStyle(RenderStyle* style) | 106 Pagination::Mode paginationModeForRenderStyle(RenderStyle* style) |
109 { | 107 { |
110 EOverflow overflow = style->overflowY(); | 108 EOverflow overflow = style->overflowY(); |
111 if (overflow != OPAGEDX && overflow != OPAGEDY) | 109 if (overflow != OPAGEDX && overflow != OPAGEDY) |
112 return Pagination::Unpaginated; | 110 return Pagination::Unpaginated; |
113 | 111 |
114 bool isHorizontalWritingMode = style->isHorizontalWritingMode(); | 112 bool isHorizontalWritingMode = style->isHorizontalWritingMode(); |
(...skipping 3079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3192 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
3195 { | 3193 { |
3196 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3194 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3197 if (AXObjectCache* cache = axObjectCache()) { | 3195 if (AXObjectCache* cache = axObjectCache()) { |
3198 cache->remove(scrollbar); | 3196 cache->remove(scrollbar); |
3199 cache->handleScrollbarUpdate(this); | 3197 cache->handleScrollbarUpdate(this); |
3200 } | 3198 } |
3201 } | 3199 } |
3202 | 3200 |
3203 } // namespace WebCore | 3201 } // namespace WebCore |
OLD | NEW |