| 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 3218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3229 return; | 3229 return; |
| 3230 } | 3230 } |
| 3231 | 3231 |
| 3232 if (!hasInsertionPoint) | 3232 if (!hasInsertionPoint) |
| 3233 open(enteredDocument, ASSERT_NO_EXCEPTION); | 3233 open(enteredDocument, ASSERT_NO_EXCEPTION); |
| 3234 | 3234 |
| 3235 DCHECK(m_parser); | 3235 DCHECK(m_parser); |
| 3236 PerformanceMonitor::reportGenericViolation( | 3236 PerformanceMonitor::reportGenericViolation( |
| 3237 this, PerformanceMonitor::kDiscouragedAPIUse, | 3237 this, PerformanceMonitor::kDiscouragedAPIUse, |
| 3238 "Avoid using document.write().", 0, nullptr); | 3238 "Avoid using document.write().", 0, nullptr); |
| 3239 probe::breakIfNeeded(this, "Document.write"); | 3239 probe::breakableLocation(this, "Document.write"); |
| 3240 m_parser->insert(text); | 3240 m_parser->insert(text); |
| 3241 } | 3241 } |
| 3242 | 3242 |
| 3243 void Document::write(const String& text, | 3243 void Document::write(const String& text, |
| 3244 Document* enteredDocument, | 3244 Document* enteredDocument, |
| 3245 ExceptionState& exceptionState) { | 3245 ExceptionState& exceptionState) { |
| 3246 write(SegmentedString(text), enteredDocument, exceptionState); | 3246 write(SegmentedString(text), enteredDocument, exceptionState); |
| 3247 } | 3247 } |
| 3248 | 3248 |
| 3249 void Document::writeln(const String& text, | 3249 void Document::writeln(const String& text, |
| (...skipping 3408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6658 } | 6658 } |
| 6659 | 6659 |
| 6660 void showLiveDocumentInstances() { | 6660 void showLiveDocumentInstances() { |
| 6661 WeakDocumentSet& set = liveDocumentSet(); | 6661 WeakDocumentSet& set = liveDocumentSet(); |
| 6662 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6662 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6663 for (blink::Document* document : set) | 6663 for (blink::Document* document : set) |
| 6664 fprintf(stderr, "- Document %p URL: %s\n", document, | 6664 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6665 document->url().getString().utf8().data()); | 6665 document->url().getString().utf8().data()); |
| 6666 } | 6666 } |
| 6667 #endif | 6667 #endif |
| OLD | NEW |