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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // TODO(majidvp): It seems that this only needs to be called when size | 424 // TODO(majidvp): It seems that this only needs to be called when size |
425 // is updated ignoring any change in the location. | 425 // is updated ignoring any change in the location. |
426 if (layoutView.usesCompositing()) | 426 if (layoutView.usesCompositing()) |
427 layoutView.compositor()->frameViewDidChangeSize(); | 427 layoutView.compositor()->frameViewDidChangeSize(); |
428 } | 428 } |
429 | 429 |
430 if (frameSizeChanged) { | 430 if (frameSizeChanged) { |
431 viewportSizeChanged(newRect.width() != oldRect.width(), | 431 viewportSizeChanged(newRect.width() != oldRect.width(), |
432 newRect.height() != oldRect.height()); | 432 newRect.height() != oldRect.height()); |
433 | 433 |
434 if (m_frame->isMainFrame()) | 434 if (m_frame->isMainFrame()) { |
435 m_frame->host()->visualViewport().mainFrameDidChangeSize(); | 435 m_frame->host()->visualViewport().mainFrameDidChangeSize(); |
| 436 if (Document* document = m_frame->document()) |
| 437 document->styleEngine().initialViewportChanged(); |
| 438 } |
436 frame().loader().restoreScrollPositionAndViewState(); | 439 frame().loader().restoreScrollPositionAndViewState(); |
437 } | 440 } |
438 } | 441 } |
439 | 442 |
440 Page* FrameView::page() const { | 443 Page* FrameView::page() const { |
441 return frame().page(); | 444 return frame().page(); |
442 } | 445 } |
443 | 446 |
444 LayoutView* FrameView::layoutView() const { | 447 LayoutView* FrameView::layoutView() const { |
445 return frame().contentLayoutObject(); | 448 return frame().contentLayoutObject(); |
(...skipping 4027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4473 } | 4476 } |
4474 | 4477 |
4475 bool FrameView::canThrottleRendering() const { | 4478 bool FrameView::canThrottleRendering() const { |
4476 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) | 4479 if (!RuntimeEnabledFeatures::renderingPipelineThrottlingEnabled()) |
4477 return false; | 4480 return false; |
4478 return m_subtreeThrottled || | 4481 return m_subtreeThrottled || |
4479 (m_hiddenForThrottling && m_crossOriginForThrottling); | 4482 (m_hiddenForThrottling && m_crossOriginForThrottling); |
4480 } | 4483 } |
4481 | 4484 |
4482 } // namespace blink | 4485 } // namespace blink |
OLD | NEW |