| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 4969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4980 } | 4980 } |
| 4981 | 4981 |
| 4982 void Document::pushCurrentScript(Element* newCurrentScript) { | 4982 void Document::pushCurrentScript(Element* newCurrentScript) { |
| 4983 DCHECK(isHTMLScriptElement(newCurrentScript) || | 4983 DCHECK(isHTMLScriptElement(newCurrentScript) || |
| 4984 isSVGScriptElement(newCurrentScript)); | 4984 isSVGScriptElement(newCurrentScript)); |
| 4985 m_currentScriptStack.append(newCurrentScript); | 4985 m_currentScriptStack.append(newCurrentScript); |
| 4986 } | 4986 } |
| 4987 | 4987 |
| 4988 void Document::popCurrentScript() { | 4988 void Document::popCurrentScript() { |
| 4989 DCHECK(!m_currentScriptStack.isEmpty()); | 4989 DCHECK(!m_currentScriptStack.isEmpty()); |
| 4990 m_currentScriptStack.removeLast(); | 4990 m_currentScriptStack.pop_back(); |
| 4991 } | 4991 } |
| 4992 | 4992 |
| 4993 void Document::setTransformSource(std::unique_ptr<TransformSource> source) { | 4993 void Document::setTransformSource(std::unique_ptr<TransformSource> source) { |
| 4994 m_transformSource = std::move(source); | 4994 m_transformSource = std::move(source); |
| 4995 } | 4995 } |
| 4996 | 4996 |
| 4997 String Document::designMode() const { | 4997 String Document::designMode() const { |
| 4998 return inDesignMode() ? "on" : "off"; | 4998 return inDesignMode() ? "on" : "off"; |
| 4999 } | 4999 } |
| 5000 | 5000 |
| (...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6477 } | 6477 } |
| 6478 | 6478 |
| 6479 void showLiveDocumentInstances() { | 6479 void showLiveDocumentInstances() { |
| 6480 WeakDocumentSet& set = liveDocumentSet(); | 6480 WeakDocumentSet& set = liveDocumentSet(); |
| 6481 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6481 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6482 for (Document* document : set) | 6482 for (Document* document : set) |
| 6483 fprintf(stderr, "- Document %p URL: %s\n", document, | 6483 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6484 document->url().getString().utf8().data()); | 6484 document->url().getString().utf8().data()); |
| 6485 } | 6485 } |
| 6486 #endif | 6486 #endif |
| OLD | NEW |