Skip to content

Commit

Permalink
Bug 1737620 - Fix misc errors in unified builds. r=mstange
Browse files Browse the repository at this point in the history
  • Loading branch information
htwyford committed Oct 28, 2021
1 parent 9ec0a60 commit 8035b85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions widget/cocoa/nsStandaloneNativeMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
#define nsStandaloneNativeMenu_h_

#include "nsIStandaloneNativeMenu.h"

namespace mozilla::widget {
class NativeMenuMac;
}
#include "NativeMenuMac.h"

class nsStandaloneNativeMenu : public nsIStandaloneNativeMenu {
public:
Expand Down
6 changes: 3 additions & 3 deletions widget/cocoa/nsTouchBarInputIcon.mm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
using namespace mozilla;
using mozilla::widget::IconLoader;

static const uint32_t kIconSize = 16;
static const uint32_t kIconHeight = 16;
static const CGFloat kHiDPIScalingFactor = 2.0f;

nsTouchBarInputIcon::nsTouchBarInputIcon(RefPtr<Document> aDocument, TouchBarInput* aInput,
Expand Down Expand Up @@ -82,7 +82,7 @@

if (!mSetIcon) {
// Load placeholder icon.
NSSize iconSize = NSMakeSize(kIconSize, kIconSize);
NSSize iconSize = NSMakeSize(kIconHeight, kIconHeight);
NSImage* placeholder = [MOZIconHelper placeholderIconWithSize:iconSize];
[mButton setImage:placeholder];
[mShareScrubber setButtonImage:placeholder];
Expand Down Expand Up @@ -118,7 +118,7 @@
// We ask only for the HiDPI images since all Touch Bars are Retina
// displays and we have no need for icons @1x.
NSImage* image = [MOZIconHelper iconImageFromImageContainer:aImage
withSize:NSMakeSize(kIconSize, kIconSize)
withSize:NSMakeSize(kIconHeight, kIconHeight)
computedStyle:nullptr
subrect:mImageRegionRect
scaleFactor:kHiDPIScalingFactor];
Expand Down

0 comments on commit 8035b85

Please sign in to comment.