Skip to content

Commit

Permalink
browser(webkit): actually fix mac compilation (#4105)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Oct 9, 2020
1 parent 9801be6 commit b85ba62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions browser_patches/webkit/BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1349
Changed: [email protected] Fri Oct 9 11:12:07 PDT 2020
1350
Changed: [email protected] Fri Oct 9 13:05:31 PDT 2020
16 changes: 14 additions & 2 deletions browser_patches/webkit/patches/bootstrap.diff
Original file line number Diff line number Diff line change
Expand Up @@ -7053,15 +7053,27 @@ index 66bf24df826daa8e7284248fd1b728cb5ebff343..d40f4f4be2bf76fa300cb54a06e81ff5

#if PLATFORM(MAC)

diff --git a/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.h b/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.h
index 06f8f1f762e89686fc5dc3fc890f13e0b363d333..68363fd83bac76b0f879ae48a54a862d715d685f 100644
--- a/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.h
+++ b/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.h
@@ -30,6 +30,7 @@ NS_ASSUME_NONNULL_BEGIN

@class _WKUserContentWorld;
@class WKWebView;
+@class WKContentWorld;

typedef NS_ENUM(NSInteger, _WKUserStyleLevel) {
_WKUserStyleUserLevel,
diff --git a/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm b/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm
index 0684412b1351f30a5d484f909d7a4b97a71ca426..458635a33f903613eff76923105029f1bafedbfc 100644
index 0684412b1351f30a5d484f909d7a4b97a71ca426..33daa49f590a614d2122477e4987f58af3b1b8ca 100644
--- a/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm
+++ b/Source/WebKit/UIProcess/API/Cocoa/_WKUserStyleSheet.mm
@@ -33,6 +33,7 @@
#import "WebKit2Initialize.h"
#import "WebPageProxy.h"
#import "_WKUserContentWorldInternal.h"
+#import <WebKit/WKContentWorld.h>
+#import <WebKit/WKContentWorldInternal.h>
#import <wtf/cocoa/VectorCocoa.h>

@implementation _WKUserStyleSheet
Expand Down

0 comments on commit b85ba62

Please sign in to comment.