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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index f93e329d6930aba981aa31fad2d7a673f1b4228a..760a7b4ab4cc6eac280886fd79ad79cf77d0340d 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1602,21 +1602,21 @@ static CSSValueList* valueForBorderRadiusShorthand(const ComputedStyle& style) {
bool showHorizontalBottomLeft = style.borderTopRightRadius().width() !=
style.borderBottomLeftRadius().width();
- bool showHorizontalBottomRight =
- showHorizontalBottomLeft || (style.borderBottomRightRadius().width() !=
- style.borderTopLeftRadius().width());
- bool showHorizontalTopRight =
- showHorizontalBottomRight || (style.borderTopRightRadius().width() !=
+ bool showHorizontalBottomRight = showHorizontalBottomLeft ||
+ (style.borderBottomRightRadius().width() !=
style.borderTopLeftRadius().width());
+ bool showHorizontalTopRight = showHorizontalBottomRight ||
+ (style.borderTopRightRadius().width() !=
+ style.borderTopLeftRadius().width());
bool showVerticalBottomLeft = style.borderTopRightRadius().height() !=
style.borderBottomLeftRadius().height();
- bool showVerticalBottomRight =
- showVerticalBottomLeft || (style.borderBottomRightRadius().height() !=
- style.borderTopLeftRadius().height());
- bool showVerticalTopRight =
- showVerticalBottomRight || (style.borderTopRightRadius().height() !=
+ bool showVerticalBottomRight = showVerticalBottomLeft ||
+ (style.borderBottomRightRadius().height() !=
style.borderTopLeftRadius().height());
+ bool showVerticalTopRight = showVerticalBottomRight ||
+ (style.borderTopRightRadius().height() !=
+ style.borderTopLeftRadius().height());
CSSValueList* topLeftRadius =
valuesForBorderRadiusCorner(style.borderTopLeftRadius(), style);
@@ -2231,9 +2231,10 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
? CSSColorValue::create(
style.visitedDependentColor(CSSPropertyCaretColor).rgb())
: currentColorOrValidColor(
- style, style.caretColor().isAutoColor()
- ? StyleColor::currentColor()
- : style.caretColor().toStyleColor());
+ style,
+ style.caretColor().isAutoColor()
+ ? StyleColor::currentColor()
+ : style.caretColor().toStyleColor());
case CSSPropertyClear:
return CSSIdentifierValue::create(style.clear());
case CSSPropertyColor:
@@ -2562,10 +2563,11 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
// when display == EDisplay::Block. Let's calculate the absolute value
// of the specified margin-right % instead of relying on LayoutBox's
// marginRight() value.
- value = minimumValueForLength(
- marginRight, toLayoutBox(layoutObject)
- ->containingBlockLogicalWidthForContent())
- .toFloat();
+ value =
+ minimumValueForLength(marginRight,
+ toLayoutBox(layoutObject)
+ ->containingBlockLogicalWidthForContent())
+ .toFloat();
} else {
value = toLayoutBox(layoutObject)->marginRight().toFloat();
}
@@ -3259,8 +3261,9 @@ const CSSValue* ComputedStyleCSSValueMapping::get(
CSSPropertyBorderLeft};
for (size_t i = 0; i < WTF_ARRAY_LENGTH(properties); ++i) {
if (!compareCSSValuePtr<CSSValue>(
- value, get(properties[i], style, layoutObject, styledNode,
- allowVisitedStyle)))
+ value,
+ get(properties[i], style, layoutObject, styledNode,
+ allowVisitedStyle)))
return nullptr;
}
return value;
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSStyleSheet.cpp ('k') | third_party/WebKit/Source/core/css/FontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698