Bug 1246106 - pass aStyleBorder as reference to ComputeBorderOverflow. r=mats
authorBogdan Postelnicu <bogdan.postelnicu>
Mon, 08 Feb 2016 03:32:00 +0100
changeset 329816 7b7110c017c5b9ca956ba24fc7eee6aa3c96d591
parent 329815 561d4d620aa3d38a53c1c9cf9ada0850b92842d0
child 329817 5253aba43949e15fbd74d12fa47a44c8a72a5193
push id10611
push userdmitchell@mozilla.com
push dateTue, 09 Feb 2016 15:15:43 +0000
reviewersmats
bugs1246106
milestone47.0a1
Bug 1246106 - pass aStyleBorder as reference to ComputeBorderOverflow. r=mats
layout/mathml/nsMathMLmtableFrame.cpp
--- a/layout/mathml/nsMathMLmtableFrame.cpp
+++ b/layout/mathml/nsMathMLmtableFrame.cpp
@@ -221,17 +221,17 @@ ApplyBorderToStyle(const nsMathMLmtdFram
       aStyleBorder.SetBorderStyle(NS_SIDE_LEFT,
                     columnLinesList->ElementAt(listLength - 1));
     }
     aStyleBorder.SetBorderWidth(NS_SIDE_LEFT, borderWidth);
   }
 }
 
 static nsMargin
-ComputeBorderOverflow(nsMathMLmtdFrame* aFrame, nsStyleBorder aStyleBorder)
+ComputeBorderOverflow(nsMathMLmtdFrame* aFrame, const nsStyleBorder& aStyleBorder)
 {
   nsMargin overflow;
   int32_t rowIndex;
   int32_t columnIndex;
   nsTableFrame* table = aFrame->GetTableFrame();
   aFrame->GetCellIndexes(rowIndex, columnIndex);
   if (!columnIndex) {
     overflow.left = table->GetColSpacing(-1);