Bug 1347224 - Part 2: Re-add Gecko_Truncate[C]String temporarially to avoid stylo breakage, r=froydnj
authorMichael Layzell <michael@thelayzells.com>
Mon, 20 Mar 2017 14:40:31 -0400
changeset 348447 c8862bd997502ac5ae8ec404917946b419b8dbae
parent 348446 367073fab1aa0cb09ab39782ec6c384e25e9a359
child 348448 59733053c359b616e742134d2b34fe2c97bd2f9e
push id88228
push usermichael@thelayzells.com
push dateMon, 20 Mar 2017 18:41:26 +0000
treeherdermozilla-inbound@c8862bd99750 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1347224
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1347224 - Part 2: Re-add Gecko_Truncate[C]String temporarially to avoid stylo breakage, r=froydnj MozReview-Commit-ID: 1EhKt434D3k
xpcom/string/nsSubstring.cpp
--- a/xpcom/string/nsSubstring.cpp
+++ b/xpcom/string/nsSubstring.cpp
@@ -420,9 +420,23 @@ bool Gecko_FallibleAppendString(nsAStrin
   return aThis->Append(*aOther, mozilla::fallible);
 }
 
 bool Gecko_FallibleSetLengthString(nsAString* aThis, uint32_t aLength)
 {
   return aThis->SetLength(aLength, mozilla::fallible);
 }
 
+// NOTE: These two methods, Gecko_TruncateString and Gecko_TruncateCString are
+// not used by the nsstring bindings, but until the version in servo
+// (nsstring_vendor) is udpated, they still need to be included in the binary to
+// not break the tree. These will be removed in bug 1348398.
+void Gecko_TruncateString(nsAString* aThis)
+{
+  aThis->Truncate();
+}
+
+void Gecko_TruncateCString(nsACString* aThis)
+{
+  aThis->Truncate();
+}
+
 } // extern "C"