Bug 1408315 - Remove unused nsCSSParser local variable in HTMLSourceElement::UpdateMediaList. r=bkelly
authorCameron McCormack <cam@mcc.id.au>
Fri, 13 Oct 2017 16:03:34 +0800
changeset 386240 099d25d72dcf1207da75379e96b814ecb326bef0
parent 386239 2168d76410631acbe9d2c0d95ad19c53f307e023
child 386241 17acac7a30c20c451081da1e386eb2105b2ee0e6
push id53306
push usercmccormack@mozilla.com
push dateSat, 14 Oct 2017 00:57:10 +0000
treeherderautoland@099d25d72dcf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly
bugs1408315
milestone58.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 1408315 - Remove unused nsCSSParser local variable in HTMLSourceElement::UpdateMediaList. r=bkelly MozReview-Commit-ID: EQAaoPUTUnc
dom/html/HTMLSourceElement.cpp
--- a/dom/html/HTMLSourceElement.cpp
+++ b/dom/html/HTMLSourceElement.cpp
@@ -9,17 +9,16 @@
 
 #include "mozilla/dom/HTMLImageElement.h"
 #include "mozilla/dom/ResponsiveImageSelector.h"
 #include "mozilla/dom/MediaList.h"
 #include "mozilla/dom/MediaSource.h"
 
 #include "nsGkAtoms.h"
 
-#include "nsCSSParser.h"
 #include "nsHostObjectProtocolHandler.h"
 
 #include "mozilla/Preferences.h"
 
 NS_IMPL_NS_NEW_HTML_ELEMENT(Source)
 
 namespace mozilla {
 namespace dom {
@@ -84,17 +83,16 @@ void
 HTMLSourceElement::UpdateMediaList(const nsAttrValue* aValue)
 {
   mMediaList = nullptr;
   nsString mediaStr;
   if (!aValue || (mediaStr = aValue->GetStringValue()).IsEmpty()) {
     return;
   }
 
-  nsCSSParser cssParser;
   mMediaList = MediaList::Create(OwnerDoc()->GetStyleBackendType(), mediaStr);
 }
 
 nsresult
 HTMLSourceElement::AfterSetAttr(int32_t aNameSpaceID, nsAtom* aName,
                                 const nsAttrValue* aValue,
                                 const nsAttrValue* aOldValue,
                                 nsIPrincipal* aMaybeScriptedPrincipal,