Advertisement
Guest User

Untitled

a guest
Jan 27th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. diff --git a/Source/WebCore/platform/ios/Device.cpp b/Source/WebCore/platform/ios/Device.cpp
  2. index e15d479..316268b 100644
  3. --- a/Source/WebCore/platform/ios/Device.cpp
  4. +++ b/Source/WebCore/platform/ios/Device.cpp
  5. @@ -33,6 +33,13 @@
  6. #include <wtf/RetainPtr.h>
  7. #include <wtf/text/WTFString.h>
  8.  
  9. +const CFStringRef kMGQAppleInternalInstallCapability = CFSTR("apple-internal-install");
  10. +const CFStringRef kMGQMainScreenPitch = CFSTR("main-screen-pitch");
  11. +const CFStringRef kMGQMainScreenScale = CFSTR("main-screen-scale");
  12. +const CFStringRef kMGQiPadCapability = CFSTR("ipad");
  13. +const CFStringRef kMGQDeviceName = CFSTR("DeviceName");
  14. +const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
  15. +
  16. namespace WebCore {
  17.  
  18. MGDeviceClass deviceClass()
  19. diff --git a/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h b/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
  20. index 2d9ebdf..2eeb47c 100644
  21. --- a/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
  22. +++ b/Source/WebCore/platform/spi/ios/MobileGestaltSPI.h
  23. @@ -38,12 +38,12 @@
  24.  
  25. #else
  26.  
  27. -EXTERN_C const CFStringRef kMGQAppleInternalInstallCapability = CFSTR("apple-internal-install");
  28. -EXTERN_C const CFStringRef kMGQMainScreenPitch = CFSTR("main-screen-pitch");
  29. -EXTERN_C const CFStringRef kMGQMainScreenScale = CFSTR("main-screen-scale");
  30. -EXTERN_C const CFStringRef kMGQiPadCapability = CFSTR("ipad");
  31. -EXTERN_C const CFStringRef kMGQDeviceName = CFSTR("DeviceName");
  32. -EXTERN_C const CFStringRef kMGQDeviceClassNumber = CFSTR("DeviceClassNumber");
  33. +EXTERN_C const CFStringRef kMGQAppleInternalInstallCapability;
  34. +EXTERN_C const CFStringRef kMGQMainScreenPitch;
  35. +EXTERN_C const CFStringRef kMGQMainScreenScale;
  36. +EXTERN_C const CFStringRef kMGQiPadCapability;
  37. +EXTERN_C const CFStringRef kMGQDeviceName;
  38. +EXTERN_C const CFStringRef kMGQDeviceClassNumber;
  39.  
  40. typedef enum {
  41. MGDeviceClassInvalid = -1,
  42. diff --git a/Source/WebKit/mac/WebView/WebView.mm b/Source/WebKit/mac/WebView/WebView.mm
  43. index 4617547..288af8f 100644
  44. --- a/Source/WebKit/mac/WebView/WebView.mm
  45. +++ b/Source/WebKit/mac/WebView/WebView.mm
  46. @@ -825,8 +825,8 @@ static bool shouldDispatchJavaScriptWindowOnErrorEvents()
  47.  
  48. static bool isInternalInstall()
  49. {
  50. - static bool isInternal = MGGetBoolAnswer(kMGQAppleInternalInstallCapability);
  51. - return isInternal;
  52. + // static bool isInternal = MGGetBoolAnswer(kMGQAppleInternalInstallCapability);
  53. + return false; // isInternal;
  54. }
  55.  
  56. static bool didOneTimeInitialization = false;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement