Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: Source/core/frame/FrameView.cpp

Issue 199693003: Send AXLayoutComplete even when document hasn't finished loading yet (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 967
968 if (!inSubtreeLayout && !toRenderView(rootForThisLayout)->document().printin g()) 968 if (!inSubtreeLayout && !toRenderView(rootForThisLayout)->document().printin g())
969 adjustViewSize(); 969 adjustViewSize();
970 970
971 layer->updateLayerPositionsAfterLayout(renderView()->layer(), updateLayerPos itionFlags(layer, inSubtreeLayout, m_doFullRepaint)); 971 layer->updateLayerPositionsAfterLayout(renderView()->layer(), updateLayerPos itionFlags(layer, inSubtreeLayout, m_doFullRepaint));
972 972
973 updateCompositingLayersAfterLayout(); 973 updateCompositingLayersAfterLayout();
974 974
975 m_layoutCount++; 975 m_layoutCount++;
976 976
977 if (AXObjectCache* cache = rootForThisLayout->document().existingAXObjectCac he()) 977 if (AXObjectCache* cache = rootForThisLayout->document().axObjectCache())
978 cache->postNotification(rootForThisLayout, AXObjectCache::AXLayoutComple te, true); 978 cache->handleLayoutComplete(rootForThisLayout);
979 updateAnnotatedRegions(); 979 updateAnnotatedRegions();
980 980
981 ASSERT(!rootForThisLayout->needsLayout()); 981 ASSERT(!rootForThisLayout->needsLayout());
982 982
983 if (document->hasListenerType(Document::OVERFLOWCHANGED_LISTENER)) 983 if (document->hasListenerType(Document::OVERFLOWCHANGED_LISTENER))
984 updateOverflowStatus(layoutSize().width() < contentsWidth(), layoutSize( ).height() < contentsHeight()); 984 updateOverflowStatus(layoutSize().width() < contentsWidth(), layoutSize( ).height() < contentsHeight());
985 985
986 scheduleOrPerformPostLayoutTasks(); 986 scheduleOrPerformPostLayoutTasks();
987 987
988 InspectorInstrumentation::didLayout(cookie, rootForThisLayout); 988 InspectorInstrumentation::didLayout(cookie, rootForThisLayout);
(...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
3219 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) 3219 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation)
3220 { 3220 {
3221 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); 3221 ScrollableArea::willRemoveScrollbar(scrollbar, orientation);
3222 if (AXObjectCache* cache = axObjectCache()) { 3222 if (AXObjectCache* cache = axObjectCache()) {
3223 cache->remove(scrollbar); 3223 cache->remove(scrollbar);
3224 cache->handleScrollbarUpdate(this); 3224 cache->handleScrollbarUpdate(this);
3225 } 3225 }
3226 } 3226 }
3227 3227
3228 } // namespace WebCore 3228 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObjectCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698