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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "core/dom/PresentationAttributeStyle.h" | 31 #include "core/dom/PresentationAttributeStyle.h" |
32 | 32 |
33 #include <algorithm> | 33 #include <algorithm> |
34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
35 #include "core/dom/Attribute.h" | 35 #include "core/dom/Attribute.h" |
36 #include "core/dom/Element.h" | 36 #include "core/dom/Element.h" |
37 #include "core/html/HTMLInputElement.h" | 37 #include "core/html/HTMLInputElement.h" |
38 #include "platform/Timer.h" | 38 #include "platform/Timer.h" |
| 39 #include "platform/scheduler/child/web_scheduler.h" |
39 #include "platform/wtf/HashFunctions.h" | 40 #include "platform/wtf/HashFunctions.h" |
40 #include "platform/wtf/HashMap.h" | 41 #include "platform/wtf/HashMap.h" |
41 #include "platform/wtf/text/CString.h" | 42 #include "platform/wtf/text/CString.h" |
42 #include "public/platform/Platform.h" | 43 #include "public/platform/Platform.h" |
43 #include "public/platform/WebScheduler.h" | |
44 #include "public/platform/WebThread.h" | 44 #include "public/platform/WebThread.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 using namespace HTMLNames; | 48 using namespace HTMLNames; |
49 | 49 |
50 struct PresentationAttributeCacheKey { | 50 struct PresentationAttributeCacheKey { |
51 PresentationAttributeCacheKey() : tag_name(nullptr) {} | 51 PresentationAttributeCacheKey() : tag_name(nullptr) {} |
52 StringImpl* tag_name; | 52 StringImpl* tag_name; |
53 Vector<std::pair<StringImpl*, AtomicString>, 3> attributes_and_values; | 53 Vector<std::pair<StringImpl*, AtomicString>, 3> attributes_and_values; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 GetPresentationAttributeCache().clear(); | 225 GetPresentationAttributeCache().clear(); |
226 GetPresentationAttributeCache().Set(cache_hash, new_entry); | 226 GetPresentationAttributeCache().Set(cache_hash, new_entry); |
227 } else { | 227 } else { |
228 cache_value->value = new_entry; | 228 cache_value->value = new_entry; |
229 } | 229 } |
230 | 230 |
231 return style; | 231 return style; |
232 } | 232 } |
233 | 233 |
234 } // namespace blink | 234 } // namespace blink |
OLD | NEW |