| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable
Name) | 95 if (!isEnabledViaScript() && !title.isEmpty() && title != currentPreferrable
Name) |
| 96 return false; | 96 return false; |
| 97 if (isAlternate() && title.isEmpty()) | 97 if (isAlternate() && title.isEmpty()) |
| 98 return false; | 98 return false; |
| 99 | 99 |
| 100 return true; | 100 return true; |
| 101 } | 101 } |
| 102 | 102 |
| 103 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node) | 103 StyleSheetCandidate::Type StyleSheetCandidate::typeOf(Node& node) |
| 104 { | 104 { |
| 105 if (node.getNodeType() == Node::PROCESSING_INSTRUCTION_NODE) | 105 if (node.getNodeType() == Node::kProcessingInstructionNode) |
| 106 return Pi; | 106 return Pi; |
| 107 | 107 |
| 108 if (node.isHTMLElement()) { | 108 if (node.isHTMLElement()) { |
| 109 if (isHTMLLinkElement(node)) | 109 if (isHTMLLinkElement(node)) |
| 110 return HTMLLink; | 110 return HTMLLink; |
| 111 if (isHTMLStyleElement(node)) | 111 if (isHTMLStyleElement(node)) |
| 112 return HTMLStyle; | 112 return HTMLStyle; |
| 113 | 113 |
| 114 ASSERT_NOT_REACHED(); | 114 ASSERT_NOT_REACHED(); |
| 115 return HTMLStyle; | 115 return HTMLStyle; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 133 return toSVGStyleElement(node()).sheet(); | 133 return toSVGStyleElement(node()).sheet(); |
| 134 case Pi: | 134 case Pi: |
| 135 return toProcessingInstruction(node()).sheet(); | 135 return toProcessingInstruction(node()).sheet(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 ASSERT_NOT_REACHED(); | 138 ASSERT_NOT_REACHED(); |
| 139 return 0; | 139 return 0; |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace blink | 142 } // namespace blink |
| OLD | NEW |