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

Unified Diff: third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp

Issue 2794013002: Fewer reused duplicate symbol names in animation. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
index 6f65bbf4d6ce4070f5724dd33c4de558128707b2..372ebfc4a9461cf95c169388d5890253632cf753 100644
--- a/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/LengthListPropertyFunctions.cpp
@@ -10,8 +10,8 @@ namespace blink {
namespace {
-const FillLayer* getFillLayer(CSSPropertyID property,
- const ComputedStyle& style) {
+const FillLayer* getFillLayerForPos(CSSPropertyID property,
alancutter (OOO until 2018) 2017/04/04 00:15:20 s/Pos/Position/
+ const ComputedStyle& style) {
switch (property) {
case CSSPropertyBackgroundPositionX:
case CSSPropertyBackgroundPositionY:
@@ -25,7 +25,7 @@ const FillLayer* getFillLayer(CSSPropertyID property,
}
}
-FillLayer* accessFillLayer(CSSPropertyID property, ComputedStyle& style) {
+FillLayer* accessFillLayerForPos(CSSPropertyID property, ComputedStyle& style) {
alancutter (OOO until 2018) 2017/04/04 00:15:20 s/Pos/Position/
switch (property) {
case CSSPropertyBackgroundPositionX:
case CSSPropertyBackgroundPositionY:
@@ -159,7 +159,7 @@ bool LengthListPropertyFunctions::getLengthList(CSSPropertyID property,
case CSSPropertyBackgroundPositionY:
case CSSPropertyWebkitMaskPositionX:
case CSSPropertyWebkitMaskPositionY: {
- const FillLayer* fillLayer = getFillLayer(property, style);
+ const FillLayer* fillLayer = getFillLayerForPos(property, style);
FillLayerMethods fillLayerMethods(property);
while (fillLayer && (fillLayer->*fillLayerMethods.isSet)()) {
result.push_back((fillLayer->*fillLayerMethods.getLength)());
@@ -241,7 +241,7 @@ void LengthListPropertyFunctions::setLengthList(CSSPropertyID property,
case CSSPropertyBackgroundPositionY:
case CSSPropertyWebkitMaskPositionX:
case CSSPropertyWebkitMaskPositionY: {
- FillLayer* fillLayer = accessFillLayer(property, style);
+ FillLayer* fillLayer = accessFillLayerForPos(property, style);
FillLayer* prev = nullptr;
FillLayerMethods fillLayerMethods(property);
for (size_t i = 0; i < lengthList.size(); i++) {

Powered by Google App Engine
This is Rietveld 408576698