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

Side by Side Diff: Source/core/html/shadow/HTMLContentElement.h

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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 | Annotate | Revision Log
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 20 matching lines...) Expand all
31 #ifndef HTMLContentElement_h 31 #ifndef HTMLContentElement_h
32 #define HTMLContentElement_h 32 #define HTMLContentElement_h
33 33
34 #include "core/css/CSSSelectorList.h" 34 #include "core/css/CSSSelectorList.h"
35 #include "core/dom/shadow/InsertionPoint.h" 35 #include "core/dom/shadow/InsertionPoint.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class HTMLContentElement FINAL : public InsertionPoint { 39 class HTMLContentElement FINAL : public InsertionPoint {
40 public: 40 public:
41 static PassRefPtr<HTMLContentElement> create(const QualifiedName&, Document& );
42 static PassRefPtr<HTMLContentElement> create(Document&); 41 static PassRefPtr<HTMLContentElement> create(Document&);
43 42
44 virtual ~HTMLContentElement(); 43 virtual ~HTMLContentElement();
45 44
46 virtual bool canAffectSelector() const OVERRIDE { return true; } 45 virtual bool canAffectSelector() const OVERRIDE { return true; }
47 46
48 bool canSelectNode(const Vector<Node*, 32>& siblings, int nth) const; 47 bool canSelectNode(const Vector<Node*, 32>& siblings, int nth) const;
49 48
50 const CSSSelectorList& selectorList() const; 49 const CSSSelectorList& selectorList() const;
51 bool isSelectValid() const; 50 bool isSelectValid() const;
52 51
53 private: 52 private:
54 HTMLContentElement(const QualifiedName&, Document&); 53 explicit HTMLContentElement(Document&);
55 54
56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
57 56
58 bool validateSelect() const; 57 bool validateSelect() const;
59 void parseSelect(); 58 void parseSelect();
60 59
61 bool matchSelector(const Vector<Node*, 32>& siblings, int nth) const; 60 bool matchSelector(const Vector<Node*, 32>& siblings, int nth) const;
62 61
63 bool m_shouldParseSelect; 62 bool m_shouldParseSelect;
64 bool m_isValidSelector; 63 bool m_isValidSelector;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 inline bool isHTMLContentElement(const Element* element) 98 inline bool isHTMLContentElement(const Element* element)
100 { 99 {
101 return element->hasTagName(HTMLNames::contentTag); 100 return element->hasTagName(HTMLNames::contentTag);
102 } 101 }
103 102
104 DEFINE_NODE_TYPE_CASTS(HTMLContentElement, hasTagName(HTMLNames::contentTag)); 103 DEFINE_NODE_TYPE_CASTS(HTMLContentElement, hasTagName(HTMLNames::contentTag));
105 104
106 } 105 }
107 106
108 #endif 107 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698