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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 renderer->borderTop() + renderer->paddingTop()); | 442 renderer->borderTop() + renderer->paddingTop()); |
443 renderer->repaintRectangle(repaintRect); | 443 renderer->repaintRectangle(repaintRect); |
444 } | 444 } |
445 | 445 |
446 void FrameView::setFrameRect(const IntRect& newRect) | 446 void FrameView::setFrameRect(const IntRect& newRect) |
447 { | 447 { |
448 IntRect oldRect = frameRect(); | 448 IntRect oldRect = frameRect(); |
449 if (newRect == oldRect) | 449 if (newRect == oldRect) |
450 return; | 450 return; |
451 | 451 |
| 452 #if ENABLE(TEXT_AUTOSIZING) |
| 453 // Autosized font sizes depend on the width of the viewing area. |
| 454 if (newRect.width() != oldRect.width()) { |
| 455 Page* page = m_frame ? m_frame->page() : 0; |
| 456 if (page && page->mainFrame() == m_frame && page->settings()->textAutosi
zingEnabled()) { |
| 457 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()-
>traverseNext()) |
| 458 m_frame->document()->textAutosizer()->recalculateMultipliers(); |
| 459 } |
| 460 } |
| 461 #endif |
| 462 |
452 ScrollView::setFrameRect(newRect); | 463 ScrollView::setFrameRect(newRect); |
453 | 464 |
454 updateScrollableAreaSet(); | 465 updateScrollableAreaSet(); |
455 | 466 |
456 #if USE(ACCELERATED_COMPOSITING) | 467 #if USE(ACCELERATED_COMPOSITING) |
457 if (RenderView* root = rootRenderer(this)) { | 468 if (RenderView* root = rootRenderer(this)) { |
458 if (root->usesCompositing()) | 469 if (root->usesCompositing()) |
459 root->compositor()->frameViewDidChangeSize(); | 470 root->compositor()->frameViewDidChangeSize(); |
460 } | 471 } |
461 #endif | 472 #endif |
(...skipping 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3877 { | 3888 { |
3878 #if USE(ACCELERATED_COMPOSITING) | 3889 #if USE(ACCELERATED_COMPOSITING) |
3879 if (TiledBacking* tiledBacking = this->tiledBacking()) | 3890 if (TiledBacking* tiledBacking = this->tiledBacking()) |
3880 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); | 3891 tiledBacking->setScrollingPerformanceLoggingEnabled(flag); |
3881 #else | 3892 #else |
3882 UNUSED_PARAM(flag); | 3893 UNUSED_PARAM(flag); |
3883 #endif | 3894 #endif |
3884 } | 3895 } |
3885 | 3896 |
3886 } // namespace WebCore | 3897 } // namespace WebCore |
OLD | NEW |