bug 824970 - webidl api for Rect r=bz
authorTrevor Saunders <trev.saunders@gmail.com>
Tue, 25 Dec 2012 22:12:15 -0500
changeset 117217 03ece6d48d9f80b20f7a7264fbfe6dd75c148f72
parent 117216 355d2e8ede647e88740b9acf3519cd5a2b2b02b8
child 117218 28042058474412c4d51267ecbe5478e65f72a86c
push id20377
push usertrev.saunders@gmail.com
push dateSat, 29 Dec 2012 13:42:09 +0000
treeherdermozilla-inbound@280420584744 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs824970
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 824970 - webidl api for Rect r=bz
layout/style/nsDOMCSSRect.h
--- a/layout/style/nsDOMCSSRect.h
+++ b/layout/style/nsDOMCSSRect.h
@@ -26,16 +26,21 @@ public:
                nsROCSSPrimitiveValue* aLeft);
   virtual ~nsDOMCSSRect(void);
 
   NS_DECL_CYCLE_COLLECTING_ISUPPORTS
   NS_DECL_NSIDOMRECT
 
   NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(nsDOMCSSRect)
 
+  nsROCSSPrimitiveValue* Top() const { return mTop; }
+  nsROCSSPrimitiveValue* Right() const { return mRight; }
+  nsROCSSPrimitiveValue* Bottom() const { return mBottom; }
+  nsROCSSPrimitiveValue* Left() const { return mLeft; }
+
 private:
   nsRefPtr<nsROCSSPrimitiveValue> mTop;
   nsRefPtr<nsROCSSPrimitiveValue> mRight;
   nsRefPtr<nsROCSSPrimitiveValue> mBottom;
   nsRefPtr<nsROCSSPrimitiveValue> mLeft;
 };
 
 #endif /* nsDOMCSSRect_h_ */