BUILD: build when !skia_use_expat

Change-Id: I17a695c64be0e2081ad4937b23038b7ce88ae293
Reviewed-on: https://skia-review.googlesource.com/115988
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Hal Canary <halcanary@google.com>
diff --git a/tools/viewer/BisectSlide.cpp b/tools/viewer/BisectSlide.cpp
index 63e69d2..38ab3c3 100644
--- a/tools/viewer/BisectSlide.cpp
+++ b/tools/viewer/BisectSlide.cpp
@@ -7,11 +7,14 @@
 
 #include "BisectSlide.h"
 
-#include "SkDOM.h"
 #include "SkOSPath.h"
 #include "SkPicture.h"
 #include "SkStream.h"
+
+#ifdef SK_XML
+#include "SkDOM.h"
 #include "../experimental/svg/model/SkSVGDOM.h"
+#endif
 
 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) {
     SkFILEStream stream(filepath);
@@ -22,6 +25,7 @@
 
     sk_sp<BisectSlide> bisect(new BisectSlide(filepath));
     if (bisect->fFilePath.endsWith(".svg")) {
+#ifdef SK_XML
         SkDOM xml;
         if (!xml.build(stream)) {
             SkDebugf("BISECT: XML parsing failed: \"%s\"\n", filepath);
@@ -34,6 +38,9 @@
         }
         svg->setContainerSize(SkSize::Make(bisect->getDimensions()));
         svg->render(bisect.get());
+#else
+        return nullptr;
+#endif
     } else {
         sk_sp<SkPicture> skp = SkPicture::MakeFromStream(&stream);
         if (!skp) {