| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 function(*this); | 243 function(*this); |
| 244 | 244 |
| 245 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree
().nextSibling()) { | 245 for (Frame* child = m_frame->tree().firstChild(); child; child = child->tree
().nextSibling()) { |
| 246 if (!child->isLocalFrame()) | 246 if (!child->isLocalFrame()) |
| 247 continue; | 247 continue; |
| 248 if (FrameView* childView = toLocalFrame(child)->view()) | 248 if (FrameView* childView = toLocalFrame(child)->view()) |
| 249 childView->forAllNonThrottledFrameViews(function); | 249 childView->forAllNonThrottledFrameViews(function); |
| 250 } | 250 } |
| 251 } | 251 } |
| 252 | 252 |
| 253 void FrameView::removeFromAXObjectCache() | |
| 254 { | |
| 255 if (AXObjectCache* cache = axObjectCache()) | |
| 256 cache->childrenChanged(m_frame->pagePopupOwner()); | |
| 257 } | |
| 258 | |
| 259 void FrameView::init() | 253 void FrameView::init() |
| 260 { | 254 { |
| 261 reset(); | 255 reset(); |
| 262 | 256 |
| 263 m_size = LayoutSize(); | 257 m_size = LayoutSize(); |
| 264 | 258 |
| 265 // Propagate the marginwidth/height and scrolling modes to the view. | 259 // Propagate the marginwidth/height and scrolling modes to the view. |
| 266 if (m_frame->owner() && m_frame->owner()->scrollingMode() == ScrollbarAlways
Off) | 260 if (m_frame->owner() && m_frame->owner()->scrollingMode() == ScrollbarAlways
Off) |
| 267 setCanHaveScrollbars(false); | 261 setCanHaveScrollbars(false); |
| 268 } | 262 } |
| 269 | 263 |
| 270 void FrameView::dispose() | 264 void FrameView::dispose() |
| 271 { | 265 { |
| 272 RELEASE_ASSERT(!isInPerformLayout()); | 266 RELEASE_ASSERT(!isInPerformLayout()); |
| 273 | 267 |
| 274 if (ScrollAnimatorBase* scrollAnimator = existingScrollAnimator()) | 268 if (ScrollAnimatorBase* scrollAnimator = existingScrollAnimator()) |
| 275 scrollAnimator->cancelAnimation(); | 269 scrollAnimator->cancelAnimation(); |
| 276 cancelProgrammaticScrollAnimation(); | 270 cancelProgrammaticScrollAnimation(); |
| 277 | 271 |
| 278 detachScrollbars(); | 272 detachScrollbars(); |
| 279 | 273 |
| 280 // When the view is no longer associated with a frame, it needs to be remove
d from the ax object cache | |
| 281 // right now, otherwise it won't be able to reach the topDocument()'s axObje
ct cache later. | |
| 282 removeFromAXObjectCache(); | |
| 283 | |
| 284 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) | 274 if (ScrollingCoordinator* scrollingCoordinator = this->scrollingCoordinator(
)) |
| 285 scrollingCoordinator->willDestroyScrollableArea(this); | 275 scrollingCoordinator->willDestroyScrollableArea(this); |
| 286 | 276 |
| 287 // Destroy |m_autoSizeInfo| as early as possible, to avoid dereferencing | 277 // Destroy |m_autoSizeInfo| as early as possible, to avoid dereferencing |
| 288 // partially destroyed |this| via |m_autoSizeInfo->m_frameView|. | 278 // partially destroyed |this| via |m_autoSizeInfo->m_frameView|. |
| 289 m_autoSizeInfo.clear(); | 279 m_autoSizeInfo.clear(); |
| 290 | 280 |
| 291 if (m_postLayoutTasksTimer.isActive()) | 281 if (m_postLayoutTasksTimer.isActive()) |
| 292 m_postLayoutTasksTimer.stop(); | 282 m_postLayoutTasksTimer.stop(); |
| 293 | 283 |
| (...skipping 3820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4114 return m_hiddenForThrottling && m_crossOriginForThrottling; | 4104 return m_hiddenForThrottling && m_crossOriginForThrottling; |
| 4115 } | 4105 } |
| 4116 | 4106 |
| 4117 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const | 4107 LayoutBox& FrameView::boxForScrollControlPaintInvalidation() const |
| 4118 { | 4108 { |
| 4119 ASSERT(layoutView()); | 4109 ASSERT(layoutView()); |
| 4120 return *layoutView(); | 4110 return *layoutView(); |
| 4121 } | 4111 } |
| 4122 | 4112 |
| 4123 } // namespace blink | 4113 } // namespace blink |
| OLD | NEW |