| 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 r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 #include "core/html/HTMLCanvasElement.h" | 121 #include "core/html/HTMLCanvasElement.h" |
| 122 #include "core/html/HTMLCollection.h" | 122 #include "core/html/HTMLCollection.h" |
| 123 #include "core/html/HTMLDocument.h" | 123 #include "core/html/HTMLDocument.h" |
| 124 #include "core/html/HTMLFrameOwnerElement.h" | 124 #include "core/html/HTMLFrameOwnerElement.h" |
| 125 #include "core/html/HTMLHeadElement.h" | 125 #include "core/html/HTMLHeadElement.h" |
| 126 #include "core/html/HTMLIFrameElement.h" | 126 #include "core/html/HTMLIFrameElement.h" |
| 127 #include "core/html/HTMLImportsController.h" | 127 #include "core/html/HTMLImportsController.h" |
| 128 #include "core/html/HTMLLinkElement.h" | 128 #include "core/html/HTMLLinkElement.h" |
| 129 #include "core/html/HTMLMapElement.h" | 129 #include "core/html/HTMLMapElement.h" |
| 130 #include "core/html/HTMLNameCollection.h" | 130 #include "core/html/HTMLNameCollection.h" |
| 131 #include "core/html/HTMLScriptElement.h" |
| 131 #include "core/html/HTMLStyleElement.h" | 132 #include "core/html/HTMLStyleElement.h" |
| 132 #include "core/html/HTMLTitleElement.h" | 133 #include "core/html/HTMLTitleElement.h" |
| 133 #include "core/html/PluginDocument.h" | 134 #include "core/html/PluginDocument.h" |
| 134 #include "core/html/parser/HTMLDocumentParser.h" | 135 #include "core/html/parser/HTMLDocumentParser.h" |
| 135 #include "core/html/parser/HTMLParserIdioms.h" | 136 #include "core/html/parser/HTMLParserIdioms.h" |
| 136 #include "core/html/parser/NestingLevelIncrementer.h" | 137 #include "core/html/parser/NestingLevelIncrementer.h" |
| 137 #include "core/inspector/InspectorCounters.h" | 138 #include "core/inspector/InspectorCounters.h" |
| 138 #include "core/inspector/InspectorInstrumentation.h" | 139 #include "core/inspector/InspectorInstrumentation.h" |
| 139 #include "core/inspector/ScriptCallStack.h" | 140 #include "core/inspector/ScriptCallStack.h" |
| 140 #include "core/loader/CookieJar.h" | 141 #include "core/loader/CookieJar.h" |
| (...skipping 3784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3925 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa
lIgnoringCase(linkElement->rel(), openSearchRelation)) | 3926 if (!equalIgnoringCase(linkElement->type(), openSearchMIMEType) || !equa
lIgnoringCase(linkElement->rel(), openSearchRelation)) |
| 3926 continue; | 3927 continue; |
| 3927 if (linkElement->href().isEmpty()) | 3928 if (linkElement->href().isEmpty()) |
| 3928 continue; | 3929 continue; |
| 3929 return linkElement->href(); | 3930 return linkElement->href(); |
| 3930 } | 3931 } |
| 3931 | 3932 |
| 3932 return KURL(); | 3933 return KURL(); |
| 3933 } | 3934 } |
| 3934 | 3935 |
| 3936 void Document::pushCurrentScript(PassRefPtr<HTMLScriptElement> newCurrentScript) |
| 3937 { |
| 3938 ASSERT(newCurrentScript); |
| 3939 m_currentScriptStack.append(newCurrentScript); |
| 3940 } |
| 3941 |
| 3942 void Document::popCurrentScript() |
| 3943 { |
| 3944 ASSERT(!m_currentScriptStack.isEmpty()); |
| 3945 m_currentScriptStack.removeLast(); |
| 3946 } |
| 3947 |
| 3935 void Document::applyXSLTransform(ProcessingInstruction* pi) | 3948 void Document::applyXSLTransform(ProcessingInstruction* pi) |
| 3936 { | 3949 { |
| 3937 UseCounter::count(this, UseCounter::XSLProcessingInstruction); | 3950 UseCounter::count(this, UseCounter::XSLProcessingInstruction); |
| 3938 RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); | 3951 RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); |
| 3939 processor->setXSLStyleSheet(static_cast<XSLStyleSheet*>(pi->sheet())); | 3952 processor->setXSLStyleSheet(static_cast<XSLStyleSheet*>(pi->sheet())); |
| 3940 String resultMIMEType; | 3953 String resultMIMEType; |
| 3941 String newSource; | 3954 String newSource; |
| 3942 String resultEncoding; | 3955 String resultEncoding; |
| 3943 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc
oding)) | 3956 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc
oding)) |
| 3944 return; | 3957 return; |
| (...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5603 return; | 5616 return; |
| 5604 | 5617 |
| 5605 Vector<RefPtr<Element> > associatedFormControls; | 5618 Vector<RefPtr<Element> > associatedFormControls; |
| 5606 copyToVector(m_associatedFormControls, associatedFormControls); | 5619 copyToVector(m_associatedFormControls, associatedFormControls); |
| 5607 | 5620 |
| 5608 frame()->page()->chrome().client()->didAssociateFormControls(associatedFormC
ontrols); | 5621 frame()->page()->chrome().client()->didAssociateFormControls(associatedFormC
ontrols); |
| 5609 m_associatedFormControls.clear(); | 5622 m_associatedFormControls.clear(); |
| 5610 } | 5623 } |
| 5611 | 5624 |
| 5612 } // namespace WebCore | 5625 } // namespace WebCore |
| OLD | NEW |