Bug 1294015 - Identical code for different branches in nsCSSRenderingBorders.cpp r?arai
MozReview-Commit-ID: DNwiCkUhWt6
--- a/layout/base/nsCSSRenderingBorders.cpp
+++ b/layout/base/nsCSSRenderingBorders.cpp
@@ -762,23 +762,18 @@ nsCSSBorderRenderer::GetStraightBorderPo
// | ####################### |
// | ##################### |
// | ################### |
// | ############### |
// | ####### |
// +-------------------------+----
// | |
// | |
- if (isHorizontal) {
- P.x += signs[0] * borderWidth / 2.0f;
- P.y += signs[1] * borderWidth / 2.0f;
- } else {
- P.x += signs[0] * borderWidth / 2.0f;
- P.y += signs[1] * borderWidth / 2.0f;
- }
+ P.x += signs[0] * borderWidth / 2.0f;
+ P.y += signs[1] * borderWidth / 2.0f;
} else {
// Two dots are drawn separately.
//
// borderWidth * 1.5
// |<------------>|
// | |
// |radius.width |
// |<----->| |