forked from mirrors/gecko-dev
Bug 1892867. Remove some unused view/ code. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D208289
This commit is contained in:
parent
de3ce30cd1
commit
297757abc9
2 changed files with 0 additions and 32 deletions
|
|
@ -902,28 +902,6 @@ bool nsView::IsRoot() const {
|
|||
return mViewManager->GetRootView() == this;
|
||||
}
|
||||
|
||||
nsRect nsView::GetBoundsInParentUnits() const {
|
||||
nsView* parent = GetParent();
|
||||
nsViewManager* VM = GetViewManager();
|
||||
if (this != VM->GetRootView() || !parent) {
|
||||
return mDimBounds;
|
||||
}
|
||||
int32_t ourAPD = VM->AppUnitsPerDevPixel();
|
||||
int32_t parentAPD = parent->GetViewManager()->AppUnitsPerDevPixel();
|
||||
return mDimBounds.ScaleToOtherAppUnitsRoundOut(ourAPD, parentAPD);
|
||||
}
|
||||
|
||||
nsPoint nsView::ConvertFromParentCoords(nsPoint aPt) const {
|
||||
const nsView* parent = GetParent();
|
||||
if (parent) {
|
||||
aPt = aPt.ScaleToOtherAppUnits(
|
||||
parent->GetViewManager()->AppUnitsPerDevPixel(),
|
||||
GetViewManager()->AppUnitsPerDevPixel());
|
||||
}
|
||||
aPt -= GetPosition();
|
||||
return aPt;
|
||||
}
|
||||
|
||||
static bool IsPopupWidget(nsIWidget* aWidget) {
|
||||
return aWidget->GetWindowType() == WindowType::Popup;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -218,13 +218,6 @@ class nsView final : public nsIWidgetListener {
|
|||
*/
|
||||
nsPoint GetOffsetToWidget(nsIWidget* aWidget) const;
|
||||
|
||||
/**
|
||||
* Takes a point aPt that is in the coordinate system of |this|'s parent view
|
||||
* and converts it to be in the coordinate system of |this| taking into
|
||||
* account the offset and any app unit per dev pixel ratio differences.
|
||||
*/
|
||||
nsPoint ConvertFromParentCoords(nsPoint aPt) const;
|
||||
|
||||
/**
|
||||
* Called to query the visibility state of a view.
|
||||
* @result current visibility state
|
||||
|
|
@ -525,9 +518,6 @@ class nsView final : public nsIWidgetListener {
|
|||
// parent, if we can)
|
||||
void DropMouseGrabbing();
|
||||
|
||||
// Same as GetBounds but converts to parent appunits if they are different.
|
||||
nsRect GetBoundsInParentUnits() const;
|
||||
|
||||
bool HasNonEmptyDirtyRegion() {
|
||||
return mDirtyRegion && !mDirtyRegion->IsEmpty();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue