bug 821593 - remove nsIDOMCSSPrimitiveValue:::GetRGBColor() r=bz
authorTrevor Saunders <trev.saunders@gmail.com>
Fri, 14 Dec 2012 04:18:40 -0500
changeset 125994 6c3f79ca958b4d8801a84b1efd9a43a1bd65afc1
parent 125993 270ce71000f3e762957edae971d4b97579e10f1f
child 125995 bc10be0681179170bb921e83e04f5bc6ce9dbe20
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs821593
milestone20.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 821593 - remove nsIDOMCSSPrimitiveValue:::GetRGBColor() r=bz
dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl
layout/style/nsROCSSPrimitiveValue.cpp
--- a/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl
+++ b/dom/interfaces/css/nsIDOMCSSPrimitiveValue.idl
@@ -8,17 +8,17 @@
 /**
  * The nsIDOMCSSPrimitiveValue interface is a datatype for a primitive
  * CSS value in the Document Object Model.
  *
  * For more information on this interface please see
  * http://www.w3.org/TR/DOM-Level-2-Style
  */
 
-[scriptable, uuid(e249031f-8df9-4e7a-b644-18946dce0019)]
+[scriptable, uuid(f6df7293-2dc9-4cb9-9531-778caf4370e0)]
 interface nsIDOMCSSPrimitiveValue : nsIDOMCSSValue
 {
   // UnitTypes
   const unsigned short      CSS_UNKNOWN                    = 0;
   const unsigned short      CSS_NUMBER                     = 1;
   const unsigned short      CSS_PERCENTAGE                 = 2;
   const unsigned short      CSS_EMS                        = 3;
   const unsigned short      CSS_EXS                        = 4;
@@ -54,11 +54,9 @@ interface nsIDOMCSSPrimitiveValue : nsID
                                     in DOMString stringValue)
                                         raises(DOMException);
   DOMString          getStringValue()
                                         raises(DOMException);
   nsIDOMCounter      getCounterValue()
                                         raises(DOMException);
   nsIDOMRect         getRectValue()
                                         raises(DOMException);
-  nsIDOMRGBColor     getRGBColorValue()
-                                        raises(DOMException);
 };
--- a/layout/style/nsROCSSPrimitiveValue.cpp
+++ b/layout/style/nsROCSSPrimitiveValue.cpp
@@ -474,24 +474,16 @@ nsROCSSPrimitiveValue::GetRectValue(Erro
 NS_IMETHODIMP
 nsROCSSPrimitiveValue::GetRectValue(nsIDOMRect** aRect)
 {
   ErrorResult error;
   *aRect = GetRectValue(error).get();
   return error.ErrorCode();
 }
 
-NS_IMETHODIMP
-nsROCSSPrimitiveValue::GetRGBColorValue(nsIDOMRGBColor** aColor)
-{
-  ErrorResult error;
-  NS_IF_ADDREF(*aColor = GetRGBColorValue(error));
-  return error.ErrorCode();
-}
-
 nsDOMCSSRGBColor*
 nsROCSSPrimitiveValue::GetRGBColorValue(ErrorResult& aRv)
 {
   if (mType != CSS_RGBCOLOR) {
     aRv.Throw(NS_ERROR_DOM_INVALID_ACCESS_ERR);
     return nullptr;
   }