| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 HTMLStyle, | 45 HTMLStyle, |
| 46 SVGStyle, | 46 SVGStyle, |
| 47 Pi | 47 Pi |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 StyleSheetCandidate(Node& node) | 50 StyleSheetCandidate(Node& node) |
| 51 : m_node(node) | 51 : m_node(node) |
| 52 , m_type(typeOf(node)) | 52 , m_type(typeOf(node)) |
| 53 { } | 53 { } |
| 54 | 54 |
| 55 bool isXSL() const; | |
| 56 bool isImport() const; | 55 bool isImport() const; |
| 57 bool isAlternate() const; | 56 bool isAlternate() const; |
| 58 bool isEnabledViaScript() const; | 57 bool isEnabledViaScript() const; |
| 59 bool isEnabledAndLoading() const; | 58 bool isEnabledAndLoading() const; |
| 60 bool hasPreferrableName(const String& currentPreferrableName) const; | 59 bool hasPreferrableName(const String& currentPreferrableName) const; |
| 61 bool canBeActivated(const String& currentPreferrableName) const; | 60 bool canBeActivated(const String& currentPreferrableName) const; |
| 62 | 61 |
| 63 StyleSheet* sheet() const; | 62 StyleSheet* sheet() const; |
| 64 AtomicString title() const; | 63 AtomicString title() const; |
| 65 Document* importedDocument() const; | 64 Document* importedDocument() const; |
| 66 | 65 |
| 67 private: | 66 private: |
| 68 bool isElement() const { return m_type != Pi; } | 67 bool isElement() const { return m_type != Pi; } |
| 69 bool isHTMLLink() const { return m_type == HTMLLink; } | 68 bool isHTMLLink() const { return m_type == HTMLLink; } |
| 70 Node& node() const { return *m_node; } | 69 Node& node() const { return *m_node; } |
| 71 | 70 |
| 72 static Type typeOf(Node&); | 71 static Type typeOf(Node&); |
| 73 | 72 |
| 74 RawPtrWillBeMember<Node> m_node; | 73 RawPtrWillBeMember<Node> m_node; |
| 75 Type m_type; | 74 Type m_type; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } | 77 } |
| 79 | 78 |
| 80 #endif | 79 #endif |
| 81 | 80 |
| OLD | NEW |