Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 19002005: Share Custom Element registration contexts between related documents. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tweak the test to do lazy wrapping in both cases. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org>
4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org>
5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved.
6 * Copyright (C) 2012 Intel Corporation 6 * Copyright (C) 2012 Intel Corporation
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 12 matching lines...) Expand all
23 #include "config.h" 23 #include "config.h"
24 #include "core/xml/XMLHttpRequest.h" 24 #include "core/xml/XMLHttpRequest.h"
25 25
26 #include <wtf/ArrayBuffer.h> 26 #include <wtf/ArrayBuffer.h>
27 #include <wtf/ArrayBufferView.h> 27 #include <wtf/ArrayBufferView.h>
28 #include <wtf/RefCountedLeakCounter.h> 28 #include <wtf/RefCountedLeakCounter.h>
29 #include <wtf/StdLibExtras.h> 29 #include <wtf/StdLibExtras.h>
30 #include <wtf/text/CString.h> 30 #include <wtf/text/CString.h>
31 #include <wtf/UnusedParam.h> 31 #include <wtf/UnusedParam.h>
32 #include "core/dom/ContextFeatures.h" 32 #include "core/dom/ContextFeatures.h"
33 #include "core/dom/CustomElementRegistrationContextualizer.h"
33 #include "core/dom/DOMImplementation.h" 34 #include "core/dom/DOMImplementation.h"
34 #include "core/dom/Event.h" 35 #include "core/dom/Event.h"
35 #include "core/dom/EventListener.h" 36 #include "core/dom/EventListener.h"
36 #include "core/dom/EventNames.h" 37 #include "core/dom/EventNames.h"
37 #include "core/dom/ExceptionCode.h" 38 #include "core/dom/ExceptionCode.h"
38 #include "core/dom/WebCoreMemoryInstrumentation.h" 39 #include "core/dom/WebCoreMemoryInstrumentation.h"
39 #include "core/editing/markup.h" 40 #include "core/editing/markup.h"
40 #include "core/fileapi/Blob.h" 41 #include "core/fileapi/Blob.h"
41 #include "core/fileapi/File.h" 42 #include "core/fileapi/File.h"
42 #include "core/html/DOMFormData.h" 43 #include "core/html/DOMFormData.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 m_responseDocument = 0; 245 m_responseDocument = 0;
245 } else { 246 } else {
246 if (isHTML) 247 if (isHTML)
247 m_responseDocument = HTMLDocument::create(0, m_url); 248 m_responseDocument = HTMLDocument::create(0, m_url);
248 else 249 else
249 m_responseDocument = Document::create(0, m_url); 250 m_responseDocument = Document::create(0, m_url);
250 // FIXME: Set Last-Modified. 251 // FIXME: Set Last-Modified.
251 m_responseDocument->setContent(m_responseText.flattenToString()); 252 m_responseDocument->setContent(m_responseText.flattenToString());
252 m_responseDocument->setSecurityOrigin(securityOrigin()); 253 m_responseDocument->setSecurityOrigin(securityOrigin());
253 m_responseDocument->setContextFeatures(document()->contextFeatures() ); 254 m_responseDocument->setContextFeatures(document()->contextFeatures() );
255 CustomElementRegistrationContextualizer::didCreateDocument(CustomEle mentRegistrationContextualizer::XHR_responseXML, m_responseDocument.get());
254 if (!m_responseDocument->wellFormed()) 256 if (!m_responseDocument->wellFormed())
255 m_responseDocument = 0; 257 m_responseDocument = 0;
256 } 258 }
257 m_createdDocument = true; 259 m_createdDocument = true;
258 } 260 }
259 261
260 return m_responseDocument.get(); 262 return m_responseDocument.get();
261 } 263 }
262 264
263 Blob* XMLHttpRequest::responseBlob(ExceptionCode& ec) 265 Blob* XMLHttpRequest::responseBlob(ExceptionCode& ec)
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 info.addMember(m_responseDocument, "responseDocument"); 1271 info.addMember(m_responseDocument, "responseDocument");
1270 info.addMember(m_binaryResponseBuilder, "binaryResponseBuilder"); 1272 info.addMember(m_binaryResponseBuilder, "binaryResponseBuilder");
1271 info.addMember(m_responseArrayBuffer, "responseArrayBuffer"); 1273 info.addMember(m_responseArrayBuffer, "responseArrayBuffer");
1272 info.addMember(m_lastSendURL, "lastSendURL"); 1274 info.addMember(m_lastSendURL, "lastSendURL");
1273 info.addMember(m_eventTargetData, "eventTargetData"); 1275 info.addMember(m_eventTargetData, "eventTargetData");
1274 info.addMember(m_progressEventThrottle, "progressEventThrottle"); 1276 info.addMember(m_progressEventThrottle, "progressEventThrottle");
1275 info.addMember(m_securityOrigin, "securityOrigin"); 1277 info.addMember(m_securityOrigin, "securityOrigin");
1276 } 1278 }
1277 1279
1278 } // namespace WebCore 1280 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XSLTProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698