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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 { | 380 { |
381 // We should never be detatching the page during a Layout. | 381 // We should never be detatching the page during a Layout. |
382 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout()); | 382 RELEASE_ASSERT(!m_view || !m_view->isInPerformLayout()); |
383 m_host = 0; | 383 m_host = 0; |
384 } | 384 } |
385 | 385 |
386 void LocalFrame::disconnectOwnerElement() | 386 void LocalFrame::disconnectOwnerElement() |
387 { | 387 { |
388 if (ownerElement()) { | 388 if (ownerElement()) { |
389 if (Document* doc = document()) | 389 if (Document* doc = document()) |
390 doc->topDocument()->clearAXObjectCache(); | 390 doc->topDocument().clearAXObjectCache(); |
391 ownerElement()->clearContentFrame(); | 391 ownerElement()->clearContentFrame(); |
392 if (page()) | 392 if (page()) |
393 page()->decrementSubframeCount(); | 393 page()->decrementSubframeCount(); |
394 } | 394 } |
395 m_frameInit->setOwnerElement(0); | 395 m_frameInit->setOwnerElement(0); |
396 } | 396 } |
397 | 397 |
398 bool LocalFrame::isMainFrame() const | 398 bool LocalFrame::isMainFrame() const |
399 { | 399 { |
400 Page* page = this->page(); | 400 Page* page = this->page(); |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 { | 740 { |
741 if (!m_host) | 741 if (!m_host) |
742 return 0; | 742 return 0; |
743 | 743 |
744 double ratio = m_host->deviceScaleFactor(); | 744 double ratio = m_host->deviceScaleFactor(); |
745 ratio *= pageZoomFactor(); | 745 ratio *= pageZoomFactor(); |
746 return ratio; | 746 return ratio; |
747 } | 747 } |
748 | 748 |
749 } // namespace WebCore | 749 } // namespace WebCore |
OLD | NEW |