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 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3461 | 3461 |
3462 ScrollView::frameRectsChanged(); | 3462 ScrollView::frameRectsChanged(); |
3463 } | 3463 } |
3464 | 3464 |
3465 void FrameView::setLayoutSizeInternal(const IntSize& size) | 3465 void FrameView::setLayoutSizeInternal(const IntSize& size) |
3466 { | 3466 { |
3467 if (m_layoutSize == size) | 3467 if (m_layoutSize == size) |
3468 return; | 3468 return; |
3469 | 3469 |
3470 m_layoutSize = size; | 3470 m_layoutSize = size; |
3471 contentsResized(); | 3471 ScrollView::contentsResized(); |
ojan
2014/01/03 02:04:26
This deserves a comment as to why we're calling th
Xianzhu
2014/01/03 20:46:24
Done.
| |
3472 | |
3473 if (RenderView* renderView = this->renderView()) { | |
3474 renderView->viewResized(); | |
3475 if (!renderView->selfNeedsLayout()) | |
ojan
2014/01/03 02:04:26
This also deserves a comment explaining why we don
Xianzhu
2014/01/03 20:46:24
Done.
| |
3476 sendResizeEventIfNeeded(); | |
3477 } | |
3472 } | 3478 } |
3473 | 3479 |
3474 void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orien tation) | 3480 void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orien tation) |
3475 { | 3481 { |
3476 ScrollableArea::didAddScrollbar(scrollbar, orientation); | 3482 ScrollableArea::didAddScrollbar(scrollbar, orientation); |
3477 if (AXObjectCache* cache = axObjectCache()) | 3483 if (AXObjectCache* cache = axObjectCache()) |
3478 cache->handleScrollbarUpdate(this); | 3484 cache->handleScrollbarUpdate(this); |
3479 } | 3485 } |
3480 | 3486 |
3481 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) | 3487 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) |
3482 { | 3488 { |
3483 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3489 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3484 if (AXObjectCache* cache = axObjectCache()) { | 3490 if (AXObjectCache* cache = axObjectCache()) { |
3485 cache->remove(scrollbar); | 3491 cache->remove(scrollbar); |
3486 cache->handleScrollbarUpdate(this); | 3492 cache->handleScrollbarUpdate(this); |
3487 } | 3493 } |
3488 } | 3494 } |
3489 | 3495 |
3490 } // namespace WebCore | 3496 } // namespace WebCore |
OLD | NEW |