Title: [161911] trunk/Source/WebCore
- Revision
- 161911
- Author
- [email protected]
- Date
- 2014-01-13 14:59:16 -0800 (Mon, 13 Jan 2014)
Log Message
Update the SelectorQuery code using compiled selector after r161196
https://bugs.webkit.org/show_bug.cgi?id=126860
Reviewed by Andreas Kling.
Update tree traversal code to the current traversal functions.
* dom/SelectorQuery.cpp:
(WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
(WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (161910 => 161911)
--- trunk/Source/WebCore/ChangeLog 2014-01-13 22:55:47 UTC (rev 161910)
+++ trunk/Source/WebCore/ChangeLog 2014-01-13 22:59:16 UTC (rev 161911)
@@ -1,3 +1,16 @@
+2014-01-13 Benjamin Poulain <[email protected]>
+
+ Update the SelectorQuery code using compiled selector after r161196
+ https://bugs.webkit.org/show_bug.cgi?id=126860
+
+ Reviewed by Andreas Kling.
+
+ Update tree traversal code to the current traversal functions.
+
+ * dom/SelectorQuery.cpp:
+ (WebCore::SelectorDataList::executeCompiledSimpleSelectorChecker):
+ (WebCore::SelectorDataList::executeCompiledSelectorCheckerWithContext):
+
2014-01-13 Simon Fraser <[email protected]>
Various iOS WebKit1 build fixes.
Modified: trunk/Source/WebCore/dom/SelectorQuery.cpp (161910 => 161911)
--- trunk/Source/WebCore/dom/SelectorQuery.cpp 2014-01-13 22:55:47 UTC (rev 161910)
+++ trunk/Source/WebCore/dom/SelectorQuery.cpp 2014-01-13 22:59:16 UTC (rev 161911)
@@ -270,7 +270,7 @@
template <typename SelectorQueryTrait>
ALWAYS_INLINE void SelectorDataList::executeCompiledSimpleSelectorChecker(const ContainerNode& rootNode, SelectorCompiler::SimpleSelectorChecker selectorChecker, typename SelectorQueryTrait::OutputType& output) const
{
- for (auto& element : elementDescendants(const_cast<ContainerNode&>(rootNode))) {
+ for (auto& element : descendantsOfType<Element>(const_cast<ContainerNode&>(rootNode))) {
if (selectorChecker(&element)) {
SelectorQueryTrait::appendOutputForElement(output, &element);
if (SelectorQueryTrait::shouldOnlyMatchFirstElement)
@@ -282,7 +282,7 @@
template <typename SelectorQueryTrait>
ALWAYS_INLINE void SelectorDataList::executeCompiledSelectorCheckerWithContext(const ContainerNode& rootNode, SelectorCompiler::SelectorCheckerWithCheckingContext selectorChecker, const SelectorCompiler::CheckingContext& context, typename SelectorQueryTrait::OutputType& output) const
{
- for (auto& element : elementDescendants(const_cast<ContainerNode&>(rootNode))) {
+ for (auto& element : descendantsOfType<Element>(const_cast<ContainerNode&>(rootNode))) {
if (selectorChecker(&element, &context)) {
SelectorQueryTrait::appendOutputForElement(output, &element);
if (SelectorQueryTrait::shouldOnlyMatchFirstElement)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes