| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/css/SelectorChecker.h" | 32 #include "core/css/SelectorChecker.h" |
| 33 #include "core/css/parser/CSSParser.h" | 33 #include "core/css/parser/CSSParser.h" |
| 34 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 35 #include "core/dom/ElementTraversal.h" | 35 #include "core/dom/ElementTraversal.h" |
| 36 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
| 37 #include "core/dom/Node.h" | 37 #include "core/dom/Node.h" |
| 38 #include "core/dom/NthIndexCache.h" | 38 #include "core/dom/NthIndexCache.h" |
| 39 #include "core/dom/StaticNodeList.h" | 39 #include "core/dom/StaticNodeList.h" |
| 40 #include "core/dom/shadow/ElementShadow.h" | 40 #include "core/dom/shadow/ElementShadow.h" |
| 41 #include "core/dom/shadow/ShadowRoot.h" | 41 #include "core/dom/shadow/ShadowRoot.h" |
| 42 #include "wtf/PtrUtil.h" | 42 #include "platform/wtf/PtrUtil.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 using namespace HTMLNames; | 46 using namespace HTMLNames; |
| 47 | 47 |
| 48 #if DCHECK_IS_ON() | 48 #if DCHECK_IS_ON() |
| 49 static SelectorQuery::QueryStats& CurrentQueryStats() { | 49 static SelectorQuery::QueryStats& CurrentQueryStats() { |
| 50 DEFINE_STATIC_LOCAL(SelectorQuery::QueryStats, stats, ()); | 50 DEFINE_STATIC_LOCAL(SelectorQuery::QueryStats, stats, ()); |
| 51 return stats; | 51 return stats; |
| 52 } | 52 } |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 return entries_ | 551 return entries_ |
| 552 .insert(selectors, SelectorQuery::Adopt(std::move(selector_list))) | 552 .insert(selectors, SelectorQuery::Adopt(std::move(selector_list))) |
| 553 .stored_value->value.get(); | 553 .stored_value->value.get(); |
| 554 } | 554 } |
| 555 | 555 |
| 556 void SelectorQueryCache::Invalidate() { | 556 void SelectorQueryCache::Invalidate() { |
| 557 entries_.Clear(); | 557 entries_.Clear(); |
| 558 } | 558 } |
| 559 | 559 |
| 560 } // namespace blink | 560 } // namespace blink |
| OLD | NEW |