Skip to content

Commit 26c5784

Browse files
authored
Rebase (#3096)
1 parent 3d37e45 commit 26c5784

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1312
2-
Changed: [email protected] Thu, Jul 23, 2020 3:44:28 AM
1+
1313
2+
Changed: [email protected] Wed Jul 22 23:34:09 PDT 2020

browser_patches/webkit/patches/bootstrap.diff

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9743,10 +9743,10 @@ index f9c26832d3e91e8d747c5c1e0f0d76c34f4c3096..0cdf93cfe090b9be742a9c670b3372d2
97439743
} // namespace WebKit
97449744
diff --git a/Source/WebKit/UIProcess/Inspector/mac/ScreencastEncoderMac.mm b/Source/WebKit/UIProcess/Inspector/mac/ScreencastEncoderMac.mm
97459745
new file mode 100644
9746-
index 0000000000000000000000000000000000000000..aa06bdfb5170428ace1143ae52b413ac6b987040
9746+
index 0000000000000000000000000000000000000000..51b0d77bbb2addd48a0ffd1cfb65368d37caefd9
97479747
--- /dev/null
97489748
+++ b/Source/WebKit/UIProcess/Inspector/mac/ScreencastEncoderMac.mm
9749-
@@ -0,0 +1,51 @@
9749+
@@ -0,0 +1,54 @@
97509750
+/*
97519751
+ * Copyright (C) 2020 Microsoft Corporation.
97529752
+ *
@@ -9794,7 +9794,10 @@ index 0000000000000000000000000000000000000000..aa06bdfb5170428ace1143ae52b413ac
97949794
+ }
97959795
+ size_t imageWidth = CGImageGetWidth(image);
97969796
+ size_t imageHeight = CGImageGetHeight(image);
9797-
+ CGContextDrawImage(context.get(), CGRectMake(0, 0, imageWidth, imageHeight), image);
9797+
+ // TODO: exclude controls from original screenshot
9798+
+ constexpr int browserControlsHeight = 55;
9799+
+ CGFloat pageHeight = static_cast<CGFloat>(imageHeight) - browserControlsHeight;
9800+
+ CGContextDrawImage(context.get(), CGRectMake(0, height - pageHeight, imageWidth, imageHeight), image);
97989801
+}
97999802
+
98009803
+} // namespace WebKit

0 commit comments

Comments
 (0)