Bug 1277154 followup, actually fix the bustage
authorCameron McCormack <cam@mcc.id.au>
Wed, 08 Jun 2016 09:21:52 +1000
changeset 301013 9adc60621a4a86328f0a7db5e77b77f649a02505
parent 301012 f7fb88074a1f9b6c25dd181bc9dd24b3a895191f
child 301014 09e6e28c81971e064c1117099ddf1dda027fa538
push id19599
push usercbook@mozilla.com
push dateWed, 08 Jun 2016 10:16:21 +0000
treeherderfx-team@81f4cc3f6f4c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1277154
milestone50.0a1
Bug 1277154 followup, actually fix the bustage
layout/style/nsRuleNode.cpp
--- a/layout/style/nsRuleNode.cpp
+++ b/layout/style/nsRuleNode.cpp
@@ -9409,37 +9409,37 @@ nsRuleNode::ComputeSVGData(void* aStartS
   const nsCSSValue* strokeDasharrayValue = aRuleData->ValueForStrokeDasharray();
   switch (strokeDasharrayValue->GetUnit()) {
   case eCSSUnit_Null:
     break;
 
   case eCSSUnit_Inherit:
   case eCSSUnit_Unset:
     conditions.SetUncacheable();
-    svg->SetStrokeDashoffsetFromObject(parentSVG->StrokeDashoffsetFromObject());
+    svg->SetStrokeDasharrayFromObject(parentSVG->StrokeDasharrayFromObject());
     svg->mStrokeDasharray = parentSVG->mStrokeDasharray;
     break;
 
   case eCSSUnit_Enumerated:
     MOZ_ASSERT(strokeDasharrayValue->GetIntValue() ==
                      NS_STYLE_STROKE_PROP_CONTEXT_VALUE,
                "Unknown keyword for stroke-dasharray");
-    svg->SetStrokeDashoffsetFromObject(true);
+    svg->SetStrokeDasharrayFromObject(true);
     svg->mStrokeDasharray.Clear();
     break;
 
   case eCSSUnit_Initial:
   case eCSSUnit_None:
-    svg->SetStrokeDashoffsetFromObject(false);
+    svg->SetStrokeDasharrayFromObject(false);
     svg->mStrokeDasharray.Clear();
     break;
 
   case eCSSUnit_List:
   case eCSSUnit_ListDep: {
-    svg->SetStrokeDashoffsetFromObject(false);
+    svg->SetStrokeDasharrayFromObject(false);
     svg->mStrokeDasharray.Clear();
 
     // count number of values
     const nsCSSValueList *value = strokeDasharrayValue->GetListValue();
     uint32_t strokeDasharrayLength = ListLength(value);
 
     MOZ_ASSERT(strokeDasharrayLength != 0, "no dasharray items");