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

Side by Side Diff: Source/core/animation/AnimationTranslationUtil.cpp

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/bindings/v8/custom/V8GeolocationCustom.cpp ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 #include "platform/transforms/MatrixTransformOperation.h" 33 #include "platform/transforms/MatrixTransformOperation.h"
34 #include "platform/transforms/PerspectiveTransformOperation.h" 34 #include "platform/transforms/PerspectiveTransformOperation.h"
35 #include "platform/transforms/RotateTransformOperation.h" 35 #include "platform/transforms/RotateTransformOperation.h"
36 #include "platform/transforms/ScaleTransformOperation.h" 36 #include "platform/transforms/ScaleTransformOperation.h"
37 #include "platform/transforms/SkewTransformOperation.h" 37 #include "platform/transforms/SkewTransformOperation.h"
38 #include "platform/transforms/TransformOperations.h" 38 #include "platform/transforms/TransformOperations.h"
39 #include "platform/transforms/TransformationMatrix.h" 39 #include "platform/transforms/TransformationMatrix.h"
40 #include "platform/transforms/TranslateTransformOperation.h" 40 #include "platform/transforms/TranslateTransformOperation.h"
41 #include "public/platform/WebTransformOperations.h" 41 #include "public/platform/WebTransformOperations.h"
42 42
43 using namespace std;
44 using namespace blink; 43 using namespace blink;
45 44
46 namespace WebCore { 45 namespace WebCore {
47 46
48 void toWebTransformOperations(const TransformOperations& transformOperations, We bTransformOperations* webTransformOperations) 47 void toWebTransformOperations(const TransformOperations& transformOperations, We bTransformOperations* webTransformOperations)
49 { 48 {
50 // We need to do a deep copy the transformOperations may contain ref pointer s to TransformOperation objects. 49 // We need to do a deep copy the transformOperations may contain ref pointer s to TransformOperation objects.
51 for (size_t j = 0; j < transformOperations.size(); ++j) { 50 for (std::size_t j = 0; j < transformOperations.size(); ++j) {
tkent 2014/06/12 00:23:23 Do we really need std:: for size_t?
Sunil Ratnu 2014/06/12 09:00:02 Thanks tkent. They are not needed as ::size_t is d
52 switch (transformOperations.operations()[j]->type()) { 51 switch (transformOperations.operations()[j]->type()) {
53 case TransformOperation::ScaleX: 52 case TransformOperation::ScaleX:
54 case TransformOperation::ScaleY: 53 case TransformOperation::ScaleY:
55 case TransformOperation::ScaleZ: 54 case TransformOperation::ScaleZ:
56 case TransformOperation::Scale3D: 55 case TransformOperation::Scale3D:
57 case TransformOperation::Scale: { 56 case TransformOperation::Scale: {
58 ScaleTransformOperation* transform = static_cast<ScaleTransformOpera tion*>(transformOperations.operations()[j].get()); 57 ScaleTransformOperation* transform = static_cast<ScaleTransformOpera tion*>(transformOperations.operations()[j].get());
59 webTransformOperations->appendScale(transform->x(), transform->y(), transform->z()); 58 webTransformOperations->appendScale(transform->x(), transform->y(), transform->z());
60 break; 59 break;
61 } 60 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 118
120 bool toWebFilterOperations(const FilterOperations& inOperations, WebFilterOperat ions* outOperations) 119 bool toWebFilterOperations(const FilterOperations& inOperations, WebFilterOperat ions* outOperations)
121 { 120 {
122 SkiaImageFilterBuilder builder; 121 SkiaImageFilterBuilder builder;
123 FilterOutsets outsets = inOperations.outsets(); 122 FilterOutsets outsets = inOperations.outsets();
124 builder.setCropOffset(FloatSize(outsets.left(), outsets.top())); 123 builder.setCropOffset(FloatSize(outsets.left(), outsets.top()));
125 return builder.buildFilterOperations(inOperations, outOperations); 124 return builder.buildFilterOperations(inOperations, outOperations);
126 } 125 }
127 126
128 } // namespace WebCore 127 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8GeolocationCustom.cpp ('k') | Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698