| 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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 9 * rights reserved. | 9 * rights reserved. |
| 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 Settings* Frame::settings() const { | 323 Settings* Frame::settings() const { |
| 324 if (m_host) | 324 if (m_host) |
| 325 return &m_host->settings(); | 325 return &m_host->settings(); |
| 326 return nullptr; | 326 return nullptr; |
| 327 } | 327 } |
| 328 | 328 |
| 329 void Frame::didChangeVisibilityState() { | 329 void Frame::didChangeVisibilityState() { |
| 330 HeapVector<Member<Frame>> childFrames; | 330 HeapVector<Member<Frame>> childFrames; |
| 331 for (Frame* child = tree().firstChild(); child; | 331 for (Frame* child = tree().firstChild(); child; |
| 332 child = child->tree().nextSibling()) | 332 child = child->tree().nextSibling()) |
| 333 childFrames.append(child); | 333 childFrames.push_back(child); |
| 334 for (size_t i = 0; i < childFrames.size(); ++i) | 334 for (size_t i = 0; i < childFrames.size(); ++i) |
| 335 childFrames[i]->didChangeVisibilityState(); | 335 childFrames[i]->didChangeVisibilityState(); |
| 336 } | 336 } |
| 337 | 337 |
| 338 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) | 338 Frame::Frame(FrameClient* client, FrameHost* host, FrameOwner* owner) |
| 339 : m_treeNode(this), | 339 : m_treeNode(this), |
| 340 m_host(host), | 340 m_host(host), |
| 341 m_owner(owner), | 341 m_owner(owner), |
| 342 m_client(client), | 342 m_client(client), |
| 343 m_isLoading(false) { | 343 m_isLoading(false) { |
| 344 InstanceCounters::incrementCounter(InstanceCounters::FrameCounter); | 344 InstanceCounters::incrementCounter(InstanceCounters::FrameCounter); |
| 345 | 345 |
| 346 ASSERT(page()); | 346 ASSERT(page()); |
| 347 | 347 |
| 348 if (m_owner) | 348 if (m_owner) |
| 349 m_owner->setContentFrame(*this); | 349 m_owner->setContentFrame(*this); |
| 350 else | 350 else |
| 351 page()->setMainFrame(this); | 351 page()->setMainFrame(this); |
| 352 } | 352 } |
| 353 | 353 |
| 354 } // namespace blink | 354 } // namespace blink |
| OLD | NEW |