| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using namespace HTMLNames; | 41 using namespace HTMLNames; |
| 42 | 42 |
| 43 AtomicString StyleSheetCandidate::title() const | 43 AtomicString StyleSheetCandidate::title() const |
| 44 { | 44 { |
| 45 return isElement() ? toElement(node()).fastGetAttribute(titleAttr) : nullAto
m; | 45 return isElement() ? toElement(node()).fastGetAttribute(titleAttr) : nullAto
m; |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool StyleSheetCandidate::isXSL() const | |
| 49 { | |
| 50 return !node().document().isHTMLDocument() && m_type == Pi && toProcessingIn
struction(node()).isXSL(); | |
| 51 } | |
| 52 | |
| 53 bool StyleSheetCandidate::isImport() const | 48 bool StyleSheetCandidate::isImport() const |
| 54 { | 49 { |
| 55 return m_type == HTMLLink && toHTMLLinkElement(node()).isImport(); | 50 return m_type == HTMLLink && toHTMLLinkElement(node()).isImport(); |
| 56 } | 51 } |
| 57 | 52 |
| 58 Document* StyleSheetCandidate::importedDocument() const | 53 Document* StyleSheetCandidate::importedDocument() const |
| 59 { | 54 { |
| 60 ASSERT(isImport()); | 55 ASSERT(isImport()); |
| 61 return toHTMLLinkElement(node()).import(); | 56 return toHTMLLinkElement(node()).import(); |
| 62 } | 57 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 return toSVGStyleElement(node()).sheet(); | 126 return toSVGStyleElement(node()).sheet(); |
| 132 case Pi: | 127 case Pi: |
| 133 return toProcessingInstruction(node()).sheet(); | 128 return toProcessingInstruction(node()).sheet(); |
| 134 } | 129 } |
| 135 | 130 |
| 136 ASSERT_NOT_REACHED(); | 131 ASSERT_NOT_REACHED(); |
| 137 return 0; | 132 return 0; |
| 138 } | 133 } |
| 139 | 134 |
| 140 } | 135 } |
| OLD | NEW |