| 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 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 9 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 return toLayoutPart(object); | 274 return toLayoutPart(object); |
| 275 } | 275 } |
| 276 | 276 |
| 277 Settings* Frame::settings() const | 277 Settings* Frame::settings() const |
| 278 { | 278 { |
| 279 if (m_host) | 279 if (m_host) |
| 280 return &m_host->settings(); | 280 return &m_host->settings(); |
| 281 return nullptr; | 281 return nullptr; |
| 282 } | 282 } |
| 283 | 283 |
| 284 void Frame::scheduleVisualUpdateUnlessThrottled() |
| 285 { |
| 286 if (isLocalFrame() && toLocalFrame(this)->shouldThrottleRendering()) |
| 287 return; |
| 288 page()->animator().scheduleVisualUpdate(); |
| 289 } |
| 290 |
| 284 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) | 291 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) |
| 285 : m_treeNode(this) | 292 : m_treeNode(this) |
| 286 , m_host(host) | 293 , m_host(host) |
| 287 , m_owner(owner) | 294 , m_owner(owner) |
| 288 , m_client(client) | 295 , m_client(client) |
| 289 , m_frameID(generateFrameID()) | 296 , m_frameID(generateFrameID()) |
| 290 , m_isLoading(false) | 297 , m_isLoading(false) |
| 291 { | 298 { |
| 292 InstanceCounters::incrementCounter(InstanceCounters::FrameCounter); | 299 InstanceCounters::incrementCounter(InstanceCounters::FrameCounter); |
| 293 | 300 |
| 294 ASSERT(page()); | 301 ASSERT(page()); |
| 295 | 302 |
| 296 #ifndef NDEBUG | 303 #ifndef NDEBUG |
| 297 frameCounter.increment(); | 304 frameCounter.increment(); |
| 298 #endif | 305 #endif |
| 299 | 306 |
| 300 if (m_owner) { | 307 if (m_owner) { |
| 301 if (m_owner->isLocal()) | 308 if (m_owner->isLocal()) |
| 302 toHTMLFrameOwnerElement(m_owner)->setContentFrame(*this); | 309 toHTMLFrameOwnerElement(m_owner)->setContentFrame(*this); |
| 303 } else { | 310 } else { |
| 304 page()->setMainFrame(this); | 311 page()->setMainFrame(this); |
| 305 } | 312 } |
| 306 } | 313 } |
| 307 | 314 |
| 308 } // namespace blink | 315 } // namespace blink |
| OLD | NEW |