| 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 4471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4482 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); | 4482 layoutViewItem.invalidatePaintForViewAndCompositedLayers(); |
| 4483 } | 4483 } |
| 4484 | 4484 |
| 4485 bool hasHandlers = m_frame->host() && | 4485 bool hasHandlers = m_frame->host() && |
| 4486 m_frame->host()->eventHandlerRegistry().hasEventHandlers( | 4486 m_frame->host()->eventHandlerRegistry().hasEventHandlers( |
| 4487 EventHandlerRegistry::TouchStartOrMoveEventBlocking); | 4487 EventHandlerRegistry::TouchStartOrMoveEventBlocking); |
| 4488 if (wasThrottled != canThrottleRendering() && scrollingCoordinator && | 4488 if (wasThrottled != canThrottleRendering() && scrollingCoordinator && |
| 4489 hasHandlers) | 4489 hasHandlers) |
| 4490 scrollingCoordinator->touchEventTargetRectsDidChange(); | 4490 scrollingCoordinator->touchEventTargetRectsDidChange(); |
| 4491 | 4491 |
| 4492 if (m_frame->frameScheduler()) { | |
| 4493 m_frame->frameScheduler()->setFrameVisible(!m_hiddenForThrottling); | |
| 4494 m_frame->frameScheduler()->setCrossOrigin(m_frame->isCrossOriginSubframe()); | |
| 4495 } | |
| 4496 | |
| 4497 #if DCHECK_IS_ON() | 4492 #if DCHECK_IS_ON() |
| 4498 // Make sure we never have an unthrottled frame inside a throttled one. | 4493 // Make sure we never have an unthrottled frame inside a throttled one. |
| 4499 FrameView* parent = parentFrameView(); | 4494 FrameView* parent = parentFrameView(); |
| 4500 while (parent) { | 4495 while (parent) { |
| 4501 DCHECK(canThrottleRendering() || !parent->canThrottleRendering()); | 4496 DCHECK(canThrottleRendering() || !parent->canThrottleRendering()); |
| 4502 parent = parent->parentFrameView(); | 4497 parent = parent->parentFrameView(); |
| 4503 } | 4498 } |
| 4504 #endif | 4499 #endif |
| 4505 } | 4500 } |
| 4506 | 4501 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4585 DCHECK(m_frame->isMainFrame()); | 4580 DCHECK(m_frame->isMainFrame()); |
| 4586 return m_initialViewportSize.width(); | 4581 return m_initialViewportSize.width(); |
| 4587 } | 4582 } |
| 4588 | 4583 |
| 4589 int FrameView::initialViewportHeight() const { | 4584 int FrameView::initialViewportHeight() const { |
| 4590 DCHECK(m_frame->isMainFrame()); | 4585 DCHECK(m_frame->isMainFrame()); |
| 4591 return m_initialViewportSize.height(); | 4586 return m_initialViewportSize.height(); |
| 4592 } | 4587 } |
| 4593 | 4588 |
| 4594 } // namespace blink | 4589 } // namespace blink |
| OLD | NEW |