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

Side by Side Diff: third_party/WebKit/Source/core/dom/PresentationAttributeStyle.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698