OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 Loading... |
31 #include "core/dom/CSSSelectorWatch.h" | 31 #include "core/dom/CSSSelectorWatch.h" |
32 | 32 |
33 #include "core/css/StylePropertySet.h" | 33 #include "core/css/StylePropertySet.h" |
34 #include "core/css/parser/CSSParser.h" | 34 #include "core/css/parser/CSSParser.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
37 #include "core/dom/StyleEngine.h" | 37 #include "core/dom/StyleEngine.h" |
38 #include "core/dom/TaskRunnerHelper.h" | 38 #include "core/dom/TaskRunnerHelper.h" |
39 #include "core/frame/LocalFrame.h" | 39 #include "core/frame/LocalFrame.h" |
40 #include "core/frame/LocalFrameClient.h" | 40 #include "core/frame/LocalFrameClient.h" |
41 #include "core/style/StyleRareNonInheritedData.h" | |
42 | 41 |
43 namespace blink { | 42 namespace blink { |
44 | 43 |
45 // The address of this string is important; its value is just documentation. | 44 // The address of this string is important; its value is just documentation. |
46 static const char kSupplementNameWatch[] = "CSSSelectorWatch"; | 45 static const char kSupplementNameWatch[] = "CSSSelectorWatch"; |
47 | 46 |
48 CSSSelectorWatch::CSSSelectorWatch(Document& document) | 47 CSSSelectorWatch::CSSSelectorWatch(Document& document) |
49 : Supplement<Document>(document), | 48 : Supplement<Document>(document), |
50 callback_selector_change_timer_( | 49 callback_selector_change_timer_( |
51 TaskRunnerHelper::Get(TaskType::kUnspecedTimer, &document), | 50 TaskRunnerHelper::Get(TaskType::kUnspecedTimer, &document), |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 166 } |
168 GetSupplementable()->GetStyleEngine().WatchedSelectorsChanged(); | 167 GetSupplementable()->GetStyleEngine().WatchedSelectorsChanged(); |
169 } | 168 } |
170 | 169 |
171 DEFINE_TRACE(CSSSelectorWatch) { | 170 DEFINE_TRACE(CSSSelectorWatch) { |
172 visitor->Trace(watched_callback_selectors_); | 171 visitor->Trace(watched_callback_selectors_); |
173 Supplement<Document>::Trace(visitor); | 172 Supplement<Document>::Trace(visitor); |
174 } | 173 } |
175 | 174 |
176 } // namespace blink | 175 } // namespace blink |
OLD | NEW |