OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 void setSelect(const AtomicString&); | 48 void setSelect(const AtomicString&); |
49 const AtomicString& select() const; | 49 const AtomicString& select() const; |
50 | 50 |
51 virtual MatchType matchTypeFor(Node*) OVERRIDE; | 51 virtual MatchType matchTypeFor(Node*) OVERRIDE; |
52 virtual const CSSSelectorList& selectorList() OVERRIDE; | 52 virtual const CSSSelectorList& selectorList() OVERRIDE; |
53 virtual Type insertionPointType() const OVERRIDE { return ContentInsertionPo
int; } | 53 virtual Type insertionPointType() const OVERRIDE { return ContentInsertionPo
int; } |
54 virtual bool canAffectSelector() const OVERRIDE { return true; } | 54 virtual bool canAffectSelector() const OVERRIDE { return true; } |
55 virtual bool isSelectValid(); | 55 virtual bool isSelectValid(); |
56 | 56 |
57 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | |
58 | |
59 protected: | 57 protected: |
60 HTMLContentElement(const QualifiedName&, Handle<Document>); | 58 HTMLContentElement(const QualifiedName&, Handle<Document>); |
61 | 59 |
| 60 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 61 |
62 private: | 62 private: |
63 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 63 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
64 void ensureSelectParsed(); | 64 void ensureSelectParsed(); |
65 bool validateSelect() const; | 65 bool validateSelect() const; |
66 | 66 |
67 bool m_shouldParseSelectorList; | 67 bool m_shouldParseSelectorList; |
68 bool m_isValidSelector; | 68 bool m_isValidSelector; |
69 CSSSelectorList m_selectorList; | 69 CSSSelectorList m_selectorList; |
70 }; | 70 }; |
71 | 71 |
(...skipping 17 matching lines...) Expand all Loading... |
89 | 89 |
90 inline Result<HTMLContentElement> toHTMLContentElement(Node* node) | 90 inline Result<HTMLContentElement> toHTMLContentElement(Node* node) |
91 { | 91 { |
92 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLContentElement(node)); | 92 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLContentElement(node)); |
93 return adoptRawResult(static_cast<HTMLContentElement*>(node)); | 93 return adoptRawResult(static_cast<HTMLContentElement*>(node)); |
94 } | 94 } |
95 | 95 |
96 } | 96 } |
97 | 97 |
98 #endif | 98 #endif |
OLD | NEW |