| 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 return inQuirksMode() ? "BackCompat" : "CSS1Compat"; | 598 return inQuirksMode() ? "BackCompat" : "CSS1Compat"; |
| 599 } | 599 } |
| 600 | 600 |
| 601 void Document::setDoctype(DocumentType* docType) { | 601 void Document::setDoctype(DocumentType* docType) { |
| 602 // This should never be called more than once. | 602 // This should never be called more than once. |
| 603 DCHECK(!m_docType || !docType); | 603 DCHECK(!m_docType || !docType); |
| 604 m_docType = docType; | 604 m_docType = docType; |
| 605 if (m_docType) { | 605 if (m_docType) { |
| 606 this->adoptIfNeeded(*m_docType); | 606 this->adoptIfNeeded(*m_docType); |
| 607 if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.", | 607 if (m_docType->publicId().startsWith("-//wapforum//dtd xhtml mobile 1.", |
| 608 TextCaseInsensitive)) { | 608 TextCaseASCIIInsensitive)) { |
| 609 m_isMobileDocument = true; | 609 m_isMobileDocument = true; |
| 610 m_styleEngine->viewportRulesChanged(); | 610 m_styleEngine->viewportRulesChanged(); |
| 611 } | 611 } |
| 612 } | 612 } |
| 613 } | 613 } |
| 614 | 614 |
| 615 DOMImplementation& Document::implementation() { | 615 DOMImplementation& Document::implementation() { |
| 616 if (!m_implementation) | 616 if (!m_implementation) |
| 617 m_implementation = DOMImplementation::create(*this); | 617 m_implementation = DOMImplementation::create(*this); |
| 618 return *m_implementation; | 618 return *m_implementation; |
| (...skipping 5823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6442 } | 6442 } |
| 6443 | 6443 |
| 6444 void showLiveDocumentInstances() { | 6444 void showLiveDocumentInstances() { |
| 6445 WeakDocumentSet& set = liveDocumentSet(); | 6445 WeakDocumentSet& set = liveDocumentSet(); |
| 6446 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6446 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6447 for (Document* document : set) | 6447 for (Document* document : set) |
| 6448 fprintf(stderr, "- Document %p URL: %s\n", document, | 6448 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6449 document->url().getString().utf8().data()); | 6449 document->url().getString().utf8().data()); |
| 6450 } | 6450 } |
| 6451 #endif | 6451 #endif |
| OLD | NEW |