mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1318096 part 7. Remove XPCOM element scroll* APIs. r=froydnj
This commit is contained in:
parent
391d35268f
commit
9f04732f13
@ -1811,36 +1811,6 @@ NS_IMETHOD GetBoundingClientRect(nsIDOMClientRect** _retval) final override \
|
||||
*_retval = Element::GetBoundingClientRect().take(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollTop(int32_t* aScrollTop) final override \
|
||||
{ \
|
||||
*aScrollTop = Element::ScrollTop(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD SetScrollTop(int32_t aScrollTop) final override \
|
||||
{ \
|
||||
Element::SetScrollTop(aScrollTop); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollLeft(int32_t* aScrollLeft) final override \
|
||||
{ \
|
||||
*aScrollLeft = Element::ScrollLeft(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD SetScrollLeft(int32_t aScrollLeft) final override \
|
||||
{ \
|
||||
Element::SetScrollLeft(aScrollLeft); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollWidth(int32_t* aScrollWidth) final override \
|
||||
{ \
|
||||
*aScrollWidth = Element::ScrollWidth(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollHeight(int32_t* aScrollHeight) final override \
|
||||
{ \
|
||||
*aScrollHeight = Element::ScrollHeight(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetClientTop(int32_t* aClientTop) final override \
|
||||
{ \
|
||||
*aClientTop = Element::ClientTop(); \
|
||||
@ -1860,15 +1830,5 @@ NS_IMETHOD GetClientHeight(int32_t* aClientHeight) final override \
|
||||
{ \
|
||||
*aClientHeight = Element::ClientHeight(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollLeftMax(int32_t* aScrollLeftMax) final override \
|
||||
{ \
|
||||
*aScrollLeftMax = Element::ScrollLeftMax(); \
|
||||
return NS_OK; \
|
||||
} \
|
||||
NS_IMETHOD GetScrollTopMax(int32_t* aScrollTopMax) final override \
|
||||
{ \
|
||||
*aScrollTopMax = Element::ScrollTopMax(); \
|
||||
return NS_OK; \
|
||||
}
|
||||
#endif // mozilla_dom_Element_h__
|
||||
|
@ -119,32 +119,6 @@ interface nsIDOMElement : nsIDOMNode
|
||||
*/
|
||||
nsIDOMClientRect getBoundingClientRect();
|
||||
|
||||
/**
|
||||
* The vertical scroll position of the element, or 0 if the element is not
|
||||
* scrollable. This property may be assigned a value to change the
|
||||
* vertical scroll position.
|
||||
*/
|
||||
attribute long scrollTop;
|
||||
|
||||
/**
|
||||
* The horizontal scroll position of the element, or 0 if the element is not
|
||||
* scrollable. This property may be assigned a value to change the
|
||||
* horizontal scroll position.
|
||||
*/
|
||||
attribute long scrollLeft;
|
||||
|
||||
/**
|
||||
* The width of the scrollable area of the element. If the element is not
|
||||
* scrollable, scrollWidth is equivalent to the offsetWidth.
|
||||
*/
|
||||
readonly attribute long scrollWidth;
|
||||
|
||||
/**
|
||||
* The height of the scrollable area of the element. If the element is not
|
||||
* scrollable, scrollHeight is equivalent to the offsetHeight.
|
||||
*/
|
||||
readonly attribute long scrollHeight;
|
||||
|
||||
/**
|
||||
* The height in CSS pixels of the element's top border.
|
||||
*/
|
||||
@ -167,10 +141,4 @@ interface nsIDOMElement : nsIDOMNode
|
||||
* scrollable, the scroll bars are included inside this height.
|
||||
*/
|
||||
readonly attribute long clientHeight;
|
||||
|
||||
/* The maximum offset that the element can be scrolled to
|
||||
(i.e., the value that scrollLeft/scrollTop would be clamped to if they were
|
||||
set to arbitrarily large values. */
|
||||
readonly attribute long scrollLeftMax;
|
||||
readonly attribute long scrollTopMax;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user