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

Unified Diff: third_party/WebKit/Source/core/style/ShadowData.h

Issue 2392143002: reflow comments in core/style (Closed)
Patch Set: . Created 4 years, 2 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/style/ShadowData.h
diff --git a/third_party/WebKit/Source/core/style/ShadowData.h b/third_party/WebKit/Source/core/style/ShadowData.h
index 39a8c69e7b17bc6de243842590f2c826b4fafd7f..390fdf33f591c4e04c5f481735fb85db8282f842 100644
--- a/third_party/WebKit/Source/core/style/ShadowData.h
+++ b/third_party/WebKit/Source/core/style/ShadowData.h
@@ -2,7 +2,8 @@
* Copyright (C) 2000 Lars Knoll (knoll@kde.org)
* (C) 2000 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
+ * reserved.
* Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
*
* This library is free software; you can redistribute it and/or
@@ -34,7 +35,8 @@ namespace blink {
enum ShadowStyle { Normal, Inset };
-// This class holds information about shadows for the text-shadow and box-shadow properties.
+// This class holds information about shadows for the text-shadow and box-shadow
+// properties.
class ShadowData {
USING_FAST_MALLOC(ShadowData);
@@ -68,8 +70,8 @@ class ShadowData {
// Outsets needed to adjust a source rectangle to the one cast by this
// shadow.
FloatRectOutsets rectOutsets() const {
- // 3 * skBlurRadiusToSigma(blur()) is how Skia implements the radius of a blur. See also
- // https://crbug.com/624175.
+ // 3 * skBlurRadiusToSigma(blur()) is how Skia implements the radius of a
+ // blur. See also https://crbug.com/624175.
float blurAndSpread = ceil(3 * skBlurRadiusToSigma(blur())) + spread();
return FloatRectOutsets(
blurAndSpread - y() /* top */, blurAndSpread + x() /* right */,
« no previous file with comments | « third_party/WebKit/Source/core/style/SVGComputedStyleTest.cpp ('k') | third_party/WebKit/Source/core/style/ShadowData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698