| 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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 // let the compositor pick which to actually draw. | 1033 // let the compositor pick which to actually draw. |
| 1034 // See http://crbug.com/306706 | 1034 // See http://crbug.com/306706 |
| 1035 void FrameView::repaintTree(RenderObject* root) | 1035 void FrameView::repaintTree(RenderObject* root) |
| 1036 { | 1036 { |
| 1037 ASSERT(RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); | 1037 ASSERT(RuntimeEnabledFeatures::repaintAfterLayoutEnabled()); |
| 1038 ASSERT(!root->needsLayout()); | 1038 ASSERT(!root->needsLayout()); |
| 1039 // We should only repaint for the outer most layout. This works as | 1039 // We should only repaint for the outer most layout. This works as |
| 1040 // we continue to track repaint rects until this function is called. | 1040 // we continue to track repaint rects until this function is called. |
| 1041 ASSERT(!m_nestedLayoutCount); | 1041 ASSERT(!m_nestedLayoutCount); |
| 1042 | 1042 |
| 1043 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("blink.invalidation"), "FrameView::re
paintTree"); |
| 1044 |
| 1043 // FIXME: really, we're in the repaint phase here, and the compositing queri
es are legal. | 1045 // FIXME: really, we're in the repaint phase here, and the compositing queri
es are legal. |
| 1044 // Until those states are fully fledged, I'll just disable the ASSERTS. | 1046 // Until those states are fully fledged, I'll just disable the ASSERTS. |
| 1045 DisableCompositingQueryAsserts disabler; | 1047 DisableCompositingQueryAsserts disabler; |
| 1046 | 1048 |
| 1047 for (RenderObject* renderer = root; renderer; renderer = renderer->nextInPre
Order()) { | 1049 for (RenderObject* renderer = root; renderer; renderer = renderer->nextInPre
Order()) { |
| 1048 const LayoutRect& oldRepaintRect = renderer->oldRepaintRect(); | 1050 const LayoutRect& oldRepaintRect = renderer->oldRepaintRect(); |
| 1049 const LayoutRect& newRepaintRect = renderer->newRepaintRect(); | 1051 const LayoutRect& newRepaintRect = renderer->newRepaintRect(); |
| 1050 | 1052 |
| 1051 if ((renderer->onlyNeededPositionedMovementLayout() && renderer->composi
tingState() != PaintsIntoOwnBacking) | 1053 if ((renderer->onlyNeededPositionedMovementLayout() && renderer->composi
tingState() != PaintsIntoOwnBacking) |
| 1052 || (renderer->shouldDoFullRepaintIfSelfPaintingLayer() | 1054 || (renderer->shouldDoFullRepaintIfSelfPaintingLayer() |
| (...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3253 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3255 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
| 3254 { | 3256 { |
| 3255 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3257 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3256 if (AXObjectCache* cache = axObjectCache()) { | 3258 if (AXObjectCache* cache = axObjectCache()) { |
| 3257 cache->remove(scrollbar); | 3259 cache->remove(scrollbar); |
| 3258 cache->handleScrollbarUpdate(this); | 3260 cache->handleScrollbarUpdate(this); |
| 3259 } | 3261 } |
| 3260 } | 3262 } |
| 3261 | 3263 |
| 3262 } // namespace WebCore | 3264 } // namespace WebCore |
| OLD | NEW |