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

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

Issue 2794013002: Fewer reused duplicate symbol names in animation. (Closed)
Patch Set: Addressed review comments. 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 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..0751cc84e0907e1db3a9ea10a6f5536d6ede26eb 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* getFillLayerForPosition(CSSPropertyID property,
+ const ComputedStyle& style) {
switch (property) {
case CSSPropertyBackgroundPositionX:
case CSSPropertyBackgroundPositionY:
@@ -25,7 +25,8 @@ const FillLayer* getFillLayer(CSSPropertyID property,
}
}
-FillLayer* accessFillLayer(CSSPropertyID property, ComputedStyle& style) {
+FillLayer* accessFillLayerForPosition(CSSPropertyID property,
+ ComputedStyle& style) {
switch (property) {
case CSSPropertyBackgroundPositionX:
case CSSPropertyBackgroundPositionY:
@@ -159,7 +160,7 @@ bool LengthListPropertyFunctions::getLengthList(CSSPropertyID property,
case CSSPropertyBackgroundPositionY:
case CSSPropertyWebkitMaskPositionX:
case CSSPropertyWebkitMaskPositionY: {
- const FillLayer* fillLayer = getFillLayer(property, style);
+ const FillLayer* fillLayer = getFillLayerForPosition(property, style);
FillLayerMethods fillLayerMethods(property);
while (fillLayer && (fillLayer->*fillLayerMethods.isSet)()) {
result.push_back((fillLayer->*fillLayerMethods.getLength)());
@@ -241,7 +242,7 @@ void LengthListPropertyFunctions::setLengthList(CSSPropertyID property,
case CSSPropertyBackgroundPositionY:
case CSSPropertyWebkitMaskPositionX:
case CSSPropertyWebkitMaskPositionY: {
- FillLayer* fillLayer = accessFillLayer(property, style);
+ FillLayer* fillLayer = accessFillLayerForPosition(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