2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -902,28 +902,6 @@ bool nsView::IsRoot() const {
902
902
return mViewManager ->GetRootView () == this ;
903
903
}
904
904
905
- nsRect nsView::GetBoundsInParentUnits () const {
906
- nsView* parent = GetParent ();
907
- nsViewManager* VM = GetViewManager ();
908
- if (this != VM->GetRootView () || !parent) {
909
- return mDimBounds ;
910
- }
911
- int32_t ourAPD = VM->AppUnitsPerDevPixel ();
912
- int32_t parentAPD = parent->GetViewManager ()->AppUnitsPerDevPixel ();
913
- return mDimBounds .ScaleToOtherAppUnitsRoundOut (ourAPD, parentAPD);
914
- }
915
-
916
- nsPoint nsView::ConvertFromParentCoords (nsPoint aPt) const {
917
- const nsView* parent = GetParent ();
918
- if (parent) {
919
- aPt = aPt.ScaleToOtherAppUnits (
920
- parent->GetViewManager ()->AppUnitsPerDevPixel (),
921
- GetViewManager ()->AppUnitsPerDevPixel ());
922
- }
923
- aPt -= GetPosition ();
924
- return aPt;
925
- }
926
-
927
905
static bool IsPopupWidget (nsIWidget* aWidget) {
928
906
return aWidget->GetWindowType () == WindowType::Popup;
929
907
}
Original file line number Diff line number Diff line change @@ -218,13 +218,6 @@ class nsView final : public nsIWidgetListener {
218
218
*/
219
219
nsPoint GetOffsetToWidget (nsIWidget* aWidget) const ;
220
220
221
- /* *
222
- * Takes a point aPt that is in the coordinate system of |this|'s parent view
223
- * and converts it to be in the coordinate system of |this| taking into
224
- * account the offset and any app unit per dev pixel ratio differences.
225
- */
226
- nsPoint ConvertFromParentCoords (nsPoint aPt) const ;
227
-
228
221
/* *
229
222
* Called to query the visibility state of a view.
230
223
* @result current visibility state
@@ -525,9 +518,6 @@ class nsView final : public nsIWidgetListener {
525
518
// parent, if we can)
526
519
void DropMouseGrabbing ();
527
520
528
- // Same as GetBounds but converts to parent appunits if they are different.
529
- nsRect GetBoundsInParentUnits () const ;
530
-
531
521
bool HasNonEmptyDirtyRegion () {
532
522
return mDirtyRegion && !mDirtyRegion ->IsEmpty ();
533
523
}
0 commit comments