Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLContentElement.h

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698