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

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

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/CompositorProxy.h" 5 #include "core/dom/CompositorProxy.h"
6 6
7 #include "bindings/core/v8/ExceptionMessages.h" 7 #include "bindings/core/v8/ExceptionMessages.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/dom/CompositorWorkerProxyClient.h" 9 #include "core/dom/CompositorWorkerProxyClient.h"
10 #include "core/dom/DOMNodeIds.h" 10 #include "core/dom/DOMNodeIds.h"
(...skipping 14 matching lines...) Expand all
25 uint32_t property; 25 uint32_t property;
26 } kAllowedProperties[] = { 26 } kAllowedProperties[] = {
27 {"opacity", CompositorMutableProperty::kOpacity}, 27 {"opacity", CompositorMutableProperty::kOpacity},
28 {"scrollleft", CompositorMutableProperty::kScrollLeft}, 28 {"scrollleft", CompositorMutableProperty::kScrollLeft},
29 {"scrolltop", CompositorMutableProperty::kScrollTop}, 29 {"scrolltop", CompositorMutableProperty::kScrollTop},
30 {"transform", CompositorMutableProperty::kTransform}, 30 {"transform", CompositorMutableProperty::kTransform},
31 }; 31 };
32 32
33 static uint32_t CompositorMutablePropertyForName(const String& attribute_name) { 33 static uint32_t CompositorMutablePropertyForName(const String& attribute_name) {
34 for (const auto& mapping : kAllowedProperties) { 34 for (const auto& mapping : kAllowedProperties) {
35 if (EqualIgnoringCase(mapping.name, attribute_name)) 35 if (DeprecatedEqualIgnoringCase(mapping.name, attribute_name))
36 return mapping.property; 36 return mapping.property;
37 } 37 }
38 return CompositorMutableProperty::kNone; 38 return CompositorMutableProperty::kNone;
39 } 39 }
40 40
41 static bool IsControlThread() { 41 static bool IsControlThread() {
42 return !IsMainThread(); 42 return !IsMainThread();
43 } 43 }
44 44
45 static bool IsCallingCompositorFrameCallback() { 45 static bool IsCallingCompositorFrameCallback() {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 element_id_, compositor_mutable_properties_); 305 element_id_, compositor_mutable_properties_);
306 } else { 306 } else {
307 Platform::Current()->MainThread()->GetWebTaskRunner()->PostTask( 307 Platform::Current()->MainThread()->GetWebTaskRunner()->PostTask(
308 BLINK_FROM_HERE, 308 BLINK_FROM_HERE,
309 CrossThreadBind(&DecrementCompositorProxiedPropertiesForElement, 309 CrossThreadBind(&DecrementCompositorProxiedPropertiesForElement,
310 element_id_, compositor_mutable_properties_)); 310 element_id_, compositor_mutable_properties_));
311 } 311 }
312 } 312 }
313 313
314 } // namespace blink 314 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/AttributeCollection.h ('k') | third_party/WebKit/Source/core/dom/DOMImplementation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698