| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 int nth) const; | 62 int nth) const; |
| 63 | 63 |
| 64 const CSSSelectorList& selectorList() const; | 64 const CSSSelectorList& selectorList() const; |
| 65 bool isSelectValid() const; | 65 bool isSelectValid() const; |
| 66 | 66 |
| 67 DECLARE_VIRTUAL_TRACE(); | 67 DECLARE_VIRTUAL_TRACE(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 HTMLContentElement(Document&, HTMLContentSelectFilter*); | 70 HTMLContentElement(Document&, HTMLContentSelectFilter*); |
| 71 | 71 |
| 72 void parseAttribute(const QualifiedName&, | 72 void parseAttribute(const AttributeModificationParams&) override; |
| 73 const AtomicString&, | |
| 74 const AtomicString&) override; | |
| 75 | 73 |
| 76 bool validateSelect() const; | 74 bool validateSelect() const; |
| 77 void parseSelect(); | 75 void parseSelect(); |
| 78 | 76 |
| 79 bool matchSelector(Element&) const; | 77 bool matchSelector(Element&) const; |
| 80 | 78 |
| 81 bool m_shouldParseSelect; | 79 bool m_shouldParseSelect; |
| 82 bool m_isValidSelector; | 80 bool m_isValidSelector; |
| 83 AtomicString m_select; | 81 AtomicString m_select; |
| 84 CSSSelectorList m_selectorList; | 82 CSSSelectorList m_selectorList; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 107 if (!isSelectValid()) | 105 if (!isSelectValid()) |
| 108 return false; | 106 return false; |
| 109 if (!siblings[nth]->isElementNode()) | 107 if (!siblings[nth]->isElementNode()) |
| 110 return false; | 108 return false; |
| 111 return matchSelector(*toElement(siblings[nth])); | 109 return matchSelector(*toElement(siblings[nth])); |
| 112 } | 110 } |
| 113 | 111 |
| 114 } // namespace blink | 112 } // namespace blink |
| 115 | 113 |
| 116 #endif // HTMLContentElement_h | 114 #endif // HTMLContentElement_h |
| OLD | NEW |