| 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 4246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4257 void Document::popCurrentScript() | 4257 void Document::popCurrentScript() |
| 4258 { | 4258 { |
| 4259 ASSERT(!m_currentScriptStack.isEmpty()); | 4259 ASSERT(!m_currentScriptStack.isEmpty()); |
| 4260 m_currentScriptStack.removeLast(); | 4260 m_currentScriptStack.removeLast(); |
| 4261 } | 4261 } |
| 4262 | 4262 |
| 4263 void Document::applyXSLTransform(ProcessingInstruction* pi) | 4263 void Document::applyXSLTransform(ProcessingInstruction* pi) |
| 4264 { | 4264 { |
| 4265 ASSERT(!pi->isLoading()); | 4265 ASSERT(!pi->isLoading()); |
| 4266 UseCounter::count(*this, UseCounter::XSLProcessingInstruction); | 4266 UseCounter::count(*this, UseCounter::XSLProcessingInstruction); |
| 4267 RefPtr<XSLTProcessor> processor = XSLTProcessor::create(); | 4267 RefPtrWillBeRawPtr<XSLTProcessor> processor = XSLTProcessor::create(); |
| 4268 processor->setXSLStyleSheet(toXSLStyleSheet(pi->sheet())); | 4268 processor->setXSLStyleSheet(toXSLStyleSheet(pi->sheet())); |
| 4269 String resultMIMEType; | 4269 String resultMIMEType; |
| 4270 String newSource; | 4270 String newSource; |
| 4271 String resultEncoding; | 4271 String resultEncoding; |
| 4272 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc
oding)) | 4272 if (!processor->transformToString(this, resultMIMEType, newSource, resultEnc
oding)) |
| 4273 return; | 4273 return; |
| 4274 // FIXME: If the transform failed we should probably report an error (like M
ozilla does). | 4274 // FIXME: If the transform failed we should probably report an error (like M
ozilla does). |
| 4275 Frame* ownerFrame = frame(); | 4275 Frame* ownerFrame = frame(); |
| 4276 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMETyp
e, this, ownerFrame); | 4276 processor->createDocumentFromSource(newSource, resultEncoding, resultMIMETyp
e, this, ownerFrame); |
| 4277 InspectorInstrumentation::frameDocumentUpdated(ownerFrame); | 4277 InspectorInstrumentation::frameDocumentUpdated(ownerFrame); |
| (...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5441 void Document::defaultEventHandler(Event* event) | 5441 void Document::defaultEventHandler(Event* event) |
| 5442 { | 5442 { |
| 5443 if (frame() && frame()->remotePlatformLayer()) { | 5443 if (frame() && frame()->remotePlatformLayer()) { |
| 5444 frame()->chromeClient().forwardInputEvent(this, event); | 5444 frame()->chromeClient().forwardInputEvent(this, event); |
| 5445 return; | 5445 return; |
| 5446 } | 5446 } |
| 5447 Node::defaultEventHandler(event); | 5447 Node::defaultEventHandler(event); |
| 5448 } | 5448 } |
| 5449 | 5449 |
| 5450 } // namespace WebCore | 5450 } // namespace WebCore |
| OLD | NEW |