| OLD | NEW |
| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 DCHECK(getExecutionContext()->isDocument()); | 255 DCHECK(getExecutionContext()->isDocument()); |
| 256 return toDocument(getExecutionContext()); | 256 return toDocument(getExecutionContext()); |
| 257 } | 257 } |
| 258 | 258 |
| 259 SecurityOrigin* XMLHttpRequest::getSecurityOrigin() const { | 259 SecurityOrigin* XMLHttpRequest::getSecurityOrigin() const { |
| 260 return m_isolatedWorldSecurityOrigin | 260 return m_isolatedWorldSecurityOrigin |
| 261 ? m_isolatedWorldSecurityOrigin.get() | 261 ? m_isolatedWorldSecurityOrigin.get() |
| 262 : getExecutionContext()->getSecurityOrigin(); | 262 : getExecutionContext()->getSecurityOrigin(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 XMLHttpRequest::State XMLHttpRequest::readyState() const { | 265 XMLHttpRequest::State XMLHttpRequest::getReadyState() const { |
| 266 return m_state; | 266 return m_state; |
| 267 } | 267 } |
| 268 | 268 |
| 269 ScriptString XMLHttpRequest::responseText(ExceptionState& exceptionState) { | 269 ScriptString XMLHttpRequest::responseText(ExceptionState& exceptionState) { |
| 270 if (m_responseTypeCode != ResponseTypeDefault && | 270 if (m_responseTypeCode != ResponseTypeDefault && |
| 271 m_responseTypeCode != ResponseTypeText) { | 271 m_responseTypeCode != ResponseTypeText) { |
| 272 exceptionState.throwDOMException(InvalidStateError, | 272 exceptionState.throwDOMException(InvalidStateError, |
| 273 "The value is only accessible if the " | 273 "The value is only accessible if the " |
| 274 "object's 'responseType' is '' or 'text' " | 274 "object's 'responseType' is '' or 'text' " |
| 275 "(was '" + | 275 "(was '" + |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1847 visitor->traceWrappers(m_responseDocument); | 1847 visitor->traceWrappers(m_responseDocument); |
| 1848 visitor->traceWrappers(m_responseArrayBuffer); | 1848 visitor->traceWrappers(m_responseArrayBuffer); |
| 1849 XMLHttpRequestEventTarget::traceWrappers(visitor); | 1849 XMLHttpRequestEventTarget::traceWrappers(visitor); |
| 1850 } | 1850 } |
| 1851 | 1851 |
| 1852 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { | 1852 std::ostream& operator<<(std::ostream& ostream, const XMLHttpRequest* xhr) { |
| 1853 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); | 1853 return ostream << "XMLHttpRequest " << static_cast<const void*>(xhr); |
| 1854 } | 1854 } |
| 1855 | 1855 |
| 1856 } // namespace blink | 1856 } // namespace blink |
| OLD | NEW |