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

Side by Side Diff: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp

Issue 2812743003: Rename cleanup in comments in css/ directory. (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 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
4 * rights reserved. 4 * rights reserved.
5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
6 * Copyright (C) 2013 Intel Corporation. All rights reserved. 6 * Copyright (C) 2013 Intel Corporation. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 return result.ToString(); 847 return result.ToString();
848 } 848 }
849 849
850 // only returns a non-null value if all properties have the same, non-null value 850 // only returns a non-null value if all properties have the same, non-null value
851 String StylePropertySerializer::GetCommonValue( 851 String StylePropertySerializer::GetCommonValue(
852 const StylePropertyShorthand& shorthand) const { 852 const StylePropertyShorthand& shorthand) const {
853 String res; 853 String res;
854 for (unsigned i = 0; i < shorthand.length(); ++i) { 854 for (unsigned i = 0; i < shorthand.length(); ++i) {
855 const CSSValue* value = 855 const CSSValue* value =
856 property_set_.GetPropertyCSSValue(shorthand.properties()[i]); 856 property_set_.GetPropertyCSSValue(shorthand.properties()[i]);
857 // FIXME: CSSInitialValue::cssText should generate the right value. 857 // FIXME: CSSInitialValue::CssText should generate the right value.
858 String text = value->CssText(); 858 String text = value->CssText();
859 if (res.IsNull()) 859 if (res.IsNull())
860 res = text; 860 res = text;
861 else if (res != text) 861 else if (res != text)
862 return String(); 862 return String();
863 } 863 }
864 return res; 864 return res;
865 } 865 }
866 866
867 String StylePropertySerializer::GetAlignmentShorthandValue( 867 String StylePropertySerializer::GetAlignmentShorthandValue(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 : repeat_x; 956 : repeat_x;
957 const CSSValue& y_value = 957 const CSSValue& y_value =
958 repeat_y_list ? repeat_y_list->Item(i % repeat_y_list->length()) 958 repeat_y_list ? repeat_y_list->Item(i % repeat_y_list->length())
959 : repeat_y; 959 : repeat_y;
960 AppendBackgroundRepeatValue(builder, x_value, y_value); 960 AppendBackgroundRepeatValue(builder, x_value, y_value);
961 } 961 }
962 return builder.ToString(); 962 return builder.ToString();
963 } 963 }
964 964
965 } // namespace blink 965 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698