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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants: indents Created 4 years, 11 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/platform/graphics/GraphicsContext.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
index 57f68b9485b00e8f027ca971d22ae6d628c7b789..35d922a28aa2c6730e07c1ce52019afe996b3f38 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp
@@ -974,7 +974,7 @@ bool isSimpleDRRect(const FloatRoundedRect& outer, const FloatRoundedRect& inner
// We also ignore DRRects with a very thick relative stroke (shapes which are mostly filled by
// the stroke): Skia's stroke outline can diverge significantly from the outer/inner contours
// in some edge cases, so we fall back to drawDRRect instead.
- static float kMaxStrokeToSizeRatio = 0.75f;
+ const float kMaxStrokeToSizeRatio = 0.75f;
if (2 * strokeSize.width() / outer.rect().width() > kMaxStrokeToSizeRatio
|| 2 * strokeSize.height() / outer.rect().height() > kMaxStrokeToSizeRatio)
return false;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp ('k') | third_party/WebKit/Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698