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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 20 matching lines...) Expand all
31 #include "core/css/parser/CSSParser.h" 31 #include "core/css/parser/CSSParser.h"
32 #include "core/dom/QualifiedName.h" 32 #include "core/dom/QualifiedName.h"
33 #include "core/dom/shadow/ElementShadow.h" 33 #include "core/dom/shadow/ElementShadow.h"
34 #include "core/dom/shadow/ShadowRoot.h" 34 #include "core/dom/shadow/ShadowRoot.h"
35 #include "platform/RuntimeEnabledFeatures.h" 35 #include "platform/RuntimeEnabledFeatures.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 using namespace HTMLNames; 39 using namespace HTMLNames;
40 40
41 PassRefPtrWillBeRawPtr<HTMLContentElement> HTMLContentElement::create(Document& document, PassOwnPtrWillBeRawPtr<HTMLContentSelectFilter> filter) 41 RawPtr<HTMLContentElement> HTMLContentElement::create(Document& document, RawPtr <HTMLContentSelectFilter> filter)
42 { 42 {
43 return adoptRefWillBeNoop(new HTMLContentElement(document, filter)); 43 return new HTMLContentElement(document, filter);
44 } 44 }
45 45
46 inline HTMLContentElement::HTMLContentElement(Document& document, PassOwnPtrWill BeRawPtr<HTMLContentSelectFilter> filter) 46 inline HTMLContentElement::HTMLContentElement(Document& document, RawPtr<HTMLCon tentSelectFilter> filter)
47 : InsertionPoint(contentTag, document) 47 : InsertionPoint(contentTag, document)
48 , m_shouldParseSelect(false) 48 , m_shouldParseSelect(false)
49 , m_isValidSelector(true) 49 , m_isValidSelector(true)
50 , m_filter(filter) 50 , m_filter(filter)
51 { 51 {
52 } 52 }
53 53
54 HTMLContentElement::~HTMLContentElement() 54 HTMLContentElement::~HTMLContentElement()
55 { 55 {
56 } 56 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 SelectorChecker::SelectorCheckingContext context(&element, SelectorChecker:: VisitedMatchDisabled); 127 SelectorChecker::SelectorCheckingContext context(&element, SelectorChecker:: VisitedMatchDisabled);
128 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) { 128 for (const CSSSelector* selector = selectorList().first(); selector; selecto r = CSSSelectorList::next(*selector)) {
129 context.selector = selector; 129 context.selector = selector;
130 if (checker.match(context)) 130 if (checker.match(context))
131 return true; 131 return true;
132 } 132 }
133 return false; 133 return false;
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLContentElement.h ('k') | third_party/WebKit/Source/core/html/HTMLDataListElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698