summaryrefslogtreecommitdiffstats
path: root/ios
diff options
context:
space:
mode:
authormrefaat <mrefaat@chromium.org>2016-02-17 10:49:09 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-17 18:50:35 +0000
commit991d014e0db6d1c0ca833cd968ece0887a1353f6 (patch)
tree1049f8498c7728d7956b7c2e01de0e22f503db3a /ios
parent6c550eedd3c3a0ee453bf6c8295fcf92c6616e4b (diff)
downloadchromium_src-991d014e0db6d1c0ca833cd968ece0887a1353f6.zip
chromium_src-991d014e0db6d1c0ca833cd968ece0887a1353f6.tar.gz
chromium_src-991d014e0db6d1c0ca833cd968ece0887a1353f6.tar.bz2
[ios] removed The CGRect zero check -drawViewHierarchyInRect
Not needed any more after ios 7 is dropped BUG=421213 Review URL: https://codereview.chromium.org/1705793002 Cr-Commit-Position: refs/heads/master@{#375932}
Diffstat (limited to 'ios')
-rw-r--r--ios/chrome/browser/snapshots/snapshot_manager.mm9
1 files changed, 2 insertions, 7 deletions
diff --git a/ios/chrome/browser/snapshots/snapshot_manager.mm b/ios/chrome/browser/snapshots/snapshot_manager.mm
index f14b46f..71c61f6 100644
--- a/ios/chrome/browser/snapshots/snapshot_manager.mm
+++ b/ios/chrome/browser/snapshots/snapshot_manager.mm
@@ -68,13 +68,8 @@ BOOL ViewHierarchyContainsWKWebView(UIView* view) {
CGContextSaveGState(context);
CGContextTranslateCTM(context, 0, overlay.yOffset);
if (useDrawViewHierarchy) {
- CGRect overlayRect = overlay.view.bounds;
- // TODO(crbug.com/421213): The 0 check is needed for a UIKit crash on
- // iOS 7. This can be removed once iOS 7 is dropped.
- if (overlayRect.size.width > 0 && overlayRect.size.height > 0) {
- [overlay.view drawViewHierarchyInRect:overlay.view.bounds
- afterScreenUpdates:YES];
- }
+ [overlay.view drawViewHierarchyInRect:overlay.view.bounds
+ afterScreenUpdates:YES];
} else {
[[overlay.view layer] renderInContext:context];
}