| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 void Document::setRootScroller(Element* newScroller, ExceptionState& exceptionSt
ate) | 598 void Document::setRootScroller(Element* newScroller, ExceptionState& exceptionSt
ate) |
| 599 { | 599 { |
| 600 m_rootScrollerController->set(newScroller); | 600 m_rootScrollerController->set(newScroller); |
| 601 } | 601 } |
| 602 | 602 |
| 603 Element* Document::rootScroller() const | 603 Element* Document::rootScroller() const |
| 604 { | 604 { |
| 605 return m_rootScrollerController->get(); | 605 return m_rootScrollerController->get(); |
| 606 } | 606 } |
| 607 | 607 |
| 608 const Element* Document::effectiveRootScroller() const | |
| 609 { | |
| 610 return m_rootScrollerController->effectiveRootScroller(); | |
| 611 } | |
| 612 | |
| 613 bool Document::isViewportScrollCallback(const ScrollStateCallback* callback) | 608 bool Document::isViewportScrollCallback(const ScrollStateCallback* callback) |
| 614 { | 609 { |
| 615 if (!callback) | 610 if (!callback) |
| 616 return false; | 611 return false; |
| 617 | 612 |
| 618 return callback == m_rootScrollerController->viewportScrollCallback(); | 613 return callback == m_rootScrollerController->viewportScrollCallback(); |
| 619 } | 614 } |
| 620 | 615 |
| 621 bool Document::isInMainFrame() const | 616 bool Document::isInMainFrame() const |
| 622 { | 617 { |
| (...skipping 5407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6030 } | 6025 } |
| 6031 | 6026 |
| 6032 void showLiveDocumentInstances() | 6027 void showLiveDocumentInstances() |
| 6033 { | 6028 { |
| 6034 WeakDocumentSet& set = liveDocumentSet(); | 6029 WeakDocumentSet& set = liveDocumentSet(); |
| 6035 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6030 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6036 for (Document* document : set) | 6031 for (Document* document : set) |
| 6037 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); | 6032 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get
String().utf8().data()); |
| 6038 } | 6033 } |
| 6039 #endif | 6034 #endif |
| OLD | NEW |