| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 StyleSheetCandidateListHashSet::iterator begin = m_styleSheetCandidateNodes.
begin(); | 270 StyleSheetCandidateListHashSet::iterator begin = m_styleSheetCandidateNodes.
begin(); |
| 271 StyleSheetCandidateListHashSet::iterator end = m_styleSheetCandidateNodes.en
d(); | 271 StyleSheetCandidateListHashSet::iterator end = m_styleSheetCandidateNodes.en
d(); |
| 272 for (StyleSheetCandidateListHashSet::iterator it = begin; it != end; ++it) { | 272 for (StyleSheetCandidateListHashSet::iterator it = begin; it != end; ++it) { |
| 273 Node* n = *it; | 273 Node* n = *it; |
| 274 StyleSheet* sheet = 0; | 274 StyleSheet* sheet = 0; |
| 275 if (n->nodeType() == Node::PROCESSING_INSTRUCTION_NODE) { | 275 if (n->nodeType() == Node::PROCESSING_INSTRUCTION_NODE) { |
| 276 // Processing instruction (XML documents only). | 276 // Processing instruction (XML documents only). |
| 277 // We don't support linking to embedded CSS stylesheets, see <https:
//bugs.webkit.org/show_bug.cgi?id=49281> for discussion. | 277 // We don't support linking to embedded CSS stylesheets, see <https:
//bugs.webkit.org/show_bug.cgi?id=49281> for discussion. |
| 278 ProcessingInstruction* pi = static_cast<ProcessingInstruction*>(n); | 278 ProcessingInstruction* pi = static_cast<ProcessingInstruction*>(n); |
| 279 sheet = pi->sheet(); | 279 sheet = pi->sheet(); |
| 280 #if ENABLE(XSLT) | |
| 281 // Don't apply XSL transforms to already transformed documents -- <r
dar://problem/4132806> | 280 // Don't apply XSL transforms to already transformed documents -- <r
dar://problem/4132806> |
| 282 if (pi->isXSL() && !m_document->transformSourceDocument()) { | 281 if (pi->isXSL() && !m_document->transformSourceDocument()) { |
| 283 // Don't apply XSL transforms until loading is finished. | 282 // Don't apply XSL transforms until loading is finished. |
| 284 if (!m_document->parsing()) | 283 if (!m_document->parsing()) |
| 285 m_document->applyXSLTransform(pi); | 284 m_document->applyXSLTransform(pi); |
| 286 return; | 285 return; |
| 287 } | 286 } |
| 288 #endif | |
| 289 } else if ((n->isHTMLElement() && (n->hasTagName(linkTag) || n->hasTagNa
me(styleTag))) | 287 } else if ((n->isHTMLElement() && (n->hasTagName(linkTag) || n->hasTagNa
me(styleTag))) |
| 290 #if ENABLE(SVG) | 288 #if ENABLE(SVG) |
| 291 || (n->isSVGElement() && n->hasTagName(SVGNames::styleTag)) | 289 || (n->isSVGElement() && n->hasTagName(SVGNames::styleTag)) |
| 292 #endif | 290 #endif |
| 293 ) { | 291 ) { |
| 294 Element* e = toElement(n); | 292 Element* e = toElement(n); |
| 295 AtomicString title = e->getAttribute(titleAttr); | 293 AtomicString title = e->getAttribute(titleAttr); |
| 296 bool enabledViaScript = false; | 294 bool enabledViaScript = false; |
| 297 if (e->hasLocalName(linkTag)) { | 295 if (e->hasLocalName(linkTag)) { |
| 298 // <LINK> element | 296 // <LINK> element |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 info.addMember(m_authorStyleSheets, "authorStyleSheets"); | 498 info.addMember(m_authorStyleSheets, "authorStyleSheets"); |
| 501 info.addMember(m_activeAuthorStyleSheets, "activeAuthorStyleSheets"); | 499 info.addMember(m_activeAuthorStyleSheets, "activeAuthorStyleSheets"); |
| 502 info.addMember(m_styleSheetsForStyleSheetList, "styleSheetsForStyleSheetList
"); | 500 info.addMember(m_styleSheetsForStyleSheetList, "styleSheetsForStyleSheetList
"); |
| 503 info.addMember(m_styleSheetCandidateNodes, "styleSheetCandidateNodes"); | 501 info.addMember(m_styleSheetCandidateNodes, "styleSheetCandidateNodes"); |
| 504 info.addMember(m_preferredStylesheetSetName, "preferredStylesheetSetName"); | 502 info.addMember(m_preferredStylesheetSetName, "preferredStylesheetSetName"); |
| 505 info.addMember(m_selectedStylesheetSetName, "selectedStylesheetSetName"); | 503 info.addMember(m_selectedStylesheetSetName, "selectedStylesheetSetName"); |
| 506 info.addMember(m_document, "document"); | 504 info.addMember(m_document, "document"); |
| 507 } | 505 } |
| 508 | 506 |
| 509 } | 507 } |
| OLD | NEW |