Bug 1408315 - Remove unused nsCSSParser local variable in HTMLSourceElement::UpdateMediaList. r?bkelly draft
authorCameron McCormack <cam@mcc.id.au>
Fri, 13 Oct 2017 16:03:34 +0800
changeset 679947 6d11839ffebb3b7a9646e9dd0807b2fbeb8f760c
parent 679925 23d2b8b3271312cfb4b0822dead4c484026b2744
child 735721 d8e309813adec531dee943ae7a892dd0f60e1809
push id84353
push userbmo:cam@mcc.id.au
push dateFri, 13 Oct 2017 08:03:53 +0000
reviewersbkelly
bugs1408315
milestone58.0a1
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,