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 3446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3457 | 3457 |
3458 ScrollView::frameRectsChanged(); | 3458 ScrollView::frameRectsChanged(); |
3459 } | 3459 } |
3460 | 3460 |
3461 void FrameView::setLayoutSizeInternal(const IntSize& size) | 3461 void FrameView::setLayoutSizeInternal(const IntSize& size) |
3462 { | 3462 { |
3463 if (m_layoutSize == size) | 3463 if (m_layoutSize == size) |
3464 return; | 3464 return; |
3465 | 3465 |
3466 m_layoutSize = size; | 3466 m_layoutSize = size; |
3467 contentsResized(); | 3467 ScrollView::contentsResized(); |
3468 | |
3469 if (RenderView* renderView = this->renderView()) { | |
3470 renderView->viewResized(); | |
3471 if (!renderView->selfNeedsLayout()) | |
3472 sendResizeEventIfNeeded(); | |
ojan
2013/12/18 00:48:20
Why do you need to change this as part of this pat
Xianzhu
2013/12/18 20:22:45
Before the change, FrameView::performPostLayoutTas
| |
3473 } | |
3468 } | 3474 } |
3469 | 3475 |
3470 void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orien tation) | 3476 void FrameView::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orien tation) |
3471 { | 3477 { |
3472 ScrollableArea::didAddScrollbar(scrollbar, orientation); | 3478 ScrollableArea::didAddScrollbar(scrollbar, orientation); |
3473 if (AXObjectCache* cache = axObjectCache()) | 3479 if (AXObjectCache* cache = axObjectCache()) |
3474 cache->handleScrollbarUpdate(this); | 3480 cache->handleScrollbarUpdate(this); |
3475 } | 3481 } |
3476 | 3482 |
3477 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) | 3483 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o rientation) |
3478 { | 3484 { |
3479 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3485 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
3480 if (AXObjectCache* cache = axObjectCache()) { | 3486 if (AXObjectCache* cache = axObjectCache()) { |
3481 cache->remove(scrollbar); | 3487 cache->remove(scrollbar); |
3482 cache->handleScrollbarUpdate(this); | 3488 cache->handleScrollbarUpdate(this); |
3483 } | 3489 } |
3484 } | 3490 } |
3485 | 3491 |
3486 } // namespace WebCore | 3492 } // namespace WebCore |
OLD | NEW |