|
Lines 579-584
static bool isAttributeOnAllOwners(const WebCore::QualifiedName& attribute, cons
a/Source/WebCore/dom/Document.cpp_sec1
|
| 579 |
Ref<Document> Document::create(ScriptExecutionContext& context) |
579 |
Ref<Document> Document::create(ScriptExecutionContext& context) |
| 580 |
{ |
580 |
{ |
| 581 |
Ref<Document> document = adoptRef(*new Document(nullptr, URL())); |
581 |
Ref<Document> document = adoptRef(*new Document(nullptr, URL())); |
|
|
582 |
document->setScriptExecutionContext(downcast<Document>(context)); |
| 582 |
document->setSecurityOriginPolicy(context.securityOriginPolicy()); |
583 |
document->setSecurityOriginPolicy(context.securityOriginPolicy()); |
| 583 |
|
584 |
|
| 584 |
return document; |
585 |
return document; |
|
Lines 3505-3510
void Document::cloneDataFromDocument(const Document& other)
a/Source/WebCore/dom/Document.cpp_sec2
|
| 3505 |
m_documentURI = other.documentURI(); |
3506 |
m_documentURI = other.documentURI(); |
| 3506 |
|
3507 |
|
| 3507 |
setCompatibilityMode(other.m_compatibilityMode); |
3508 |
setCompatibilityMode(other.m_compatibilityMode); |
|
|
3509 |
setScriptExecutionContext(*other.scriptExecutionContext()); |
| 3508 |
setSecurityOriginPolicy(other.securityOriginPolicy()); |
3510 |
setSecurityOriginPolicy(other.securityOriginPolicy()); |
| 3509 |
overrideMIMEType(other.contentType()); |
3511 |
overrideMIMEType(other.contentType()); |
| 3510 |
setDecoder(other.decoder()); |
3512 |
setDecoder(other.decoder()); |
|
Lines 4113-4118
void Document::takeDOMWindowFrom(Document* document)
a/Source/WebCore/dom/Document.cpp_sec3
|
| 4113 |
ASSERT(m_domWindow->frame() == m_frame); |
4115 |
ASSERT(m_domWindow->frame() == m_frame); |
| 4114 |
} |
4116 |
} |
| 4115 |
|
4117 |
|
|
|
4118 |
Document* Document::scriptExecutionContext() const |
| 4119 |
{ |
| 4120 |
if (m_scriptExecutionContext) |
| 4121 |
return m_scriptExecutionContext.get(); |
| 4122 |
return const_cast<Document*>(this); |
| 4123 |
} |
| 4124 |
|
| 4116 |
void Document::setAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue) |
4125 |
void Document::setAttributeEventListener(const AtomicString& eventType, const QualifiedName& attributeName, const AtomicString& attributeValue) |
| 4117 |
{ |
4126 |
{ |
| 4118 |
setAttributeEventListener(eventType, JSLazyEventListener::create(*this, attributeName, attributeValue)); |
4127 |
setAttributeEventListener(eventType, JSLazyEventListener::create(*this, attributeName, attributeValue)); |