  @end
  
  @implementation NSView(FrameViewMethodSwizzling)
-@@ -2778,6 +2805,11 @@ GetDPI(NSWindow* aWindow)
+@@ -2778,6 +2825,11 @@ GetDPI(NSWindow* aWindow)
    return defaultPosition;
  }
  

     [gSwizzledFrameViewClasses addObject:frameViewClass];
   }
 
@@ -3008,6 +3051,9 @@ static const NSString* kStateCollectionBehavior = @"collectionBehavior";
   if (changed) {
     [self updateContentViewSize];
     [self reflowTitlebarElements];

       } else {
         stringData = [pString dataUsingEncoding:NSUnicodeStringEncoding];
       }
diff --git a/widget/cocoa/nsCocoaUtils.mm b/widget/cocoa/nsCocoaUtils.mm
index 8972c530c389..20afdf997ed7 100644
--- a/widget/cocoa/nsCocoaUtils.mm
