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

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

Issue 23133006: Merge ContentDistributor into ElementShadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't find git copies Created 7 years, 4 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 | 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 15 matching lines...) Expand all
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/html/shadow/HTMLContentElement.h" 28 #include "core/html/shadow/HTMLContentElement.h"
29 29
30 #include "HTMLNames.h" 30 #include "HTMLNames.h"
31 #include "core/css/CSSParser.h" 31 #include "core/css/CSSParser.h"
32 #include "core/css/CSSSelectorList.h" 32 #include "core/css/CSSSelectorList.h"
33 #include "core/css/SelectorChecker.h" 33 #include "core/css/SelectorChecker.h"
34 #include "core/css/SiblingTraversalStrategies.h" 34 #include "core/css/SiblingTraversalStrategies.h"
35 #include "core/dom/QualifiedName.h" 35 #include "core/dom/QualifiedName.h"
36 #include "core/dom/shadow/ElementShadow.h"
36 #include "core/dom/shadow/ShadowRoot.h" 37 #include "core/dom/shadow/ShadowRoot.h"
37 38
38 namespace WebCore { 39 namespace WebCore {
39 40
40 using namespace HTMLNames; 41 using namespace HTMLNames;
41 42
42 PassRefPtr<HTMLContentElement> HTMLContentElement::create(Document* document) 43 PassRefPtr<HTMLContentElement> HTMLContentElement::create(Document* document)
43 { 44 {
44 return adoptRef(new HTMLContentElement(contentTag, document)); 45 return adoptRef(new HTMLContentElement(contentTag, document));
45 } 46 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool HTMLContentElement::matchSelector(const Vector<Node*>& siblings, int nth) c onst 119 bool HTMLContentElement::matchSelector(const Vector<Node*>& siblings, int nth) c onst
119 { 120 {
120 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(selector)) { 121 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(selector)) {
121 if (checkOneSelector(selector, siblings, nth)) 122 if (checkOneSelector(selector, siblings, nth))
122 return true; 123 return true;
123 } 124 }
124 return false; 125 return false;
125 } 126 }
126 127
127 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698