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

Unified Diff: third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp

Issue 1656743002: Removing more implicit LayoutUnit construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix additional test 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/core/paint/BoxBorderPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp b/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
index 24a41842bca3eecb1dfa6ca92874912d46befbf6..15e67cd1ad007cba8b16e4ac6eab1a9bd48611c8 100644
--- a/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/BoxBorderPainter.cpp
@@ -971,10 +971,10 @@ void BoxBorderPainter::drawBoxSideFromPath(GraphicsContext& graphicsContext,
// Paint inner only
GraphicsContextStateSaver stateSaver(graphicsContext);
- LayoutUnit topWidth = m_edges[BSTop].usedWidth() / 2;
- LayoutUnit bottomWidth = m_edges[BSBottom].usedWidth() / 2;
- LayoutUnit leftWidth = m_edges[BSLeft].usedWidth() / 2;
- LayoutUnit rightWidth = m_edges[BSRight].usedWidth() / 2;
+ LayoutUnit topWidth(m_edges[BSTop].usedWidth() / 2);
+ LayoutUnit bottomWidth(m_edges[BSBottom].usedWidth() / 2);
+ LayoutUnit leftWidth(m_edges[BSLeft].usedWidth() / 2);
+ LayoutUnit rightWidth(m_edges[BSRight].usedWidth() / 2);
FloatRoundedRect clipRect = m_style.getRoundedInnerBorderFor(borderRect,
LayoutRectOutsets(-topWidth, -rightWidth, -bottomWidth, -leftWidth),
« no previous file with comments | « third_party/WebKit/Source/core/page/SpatialNavigation.cpp ('k') | third_party/WebKit/Source/core/paint/FieldsetPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698