Title: [185326] trunk/Source/WebKit/mac
- Revision
- 185326
- Author
- [email protected]
- Date
- 2015-06-08 12:55:23 -0700 (Mon, 08 Jun 2015)
Log Message
Try to fix the Mavericks build.
* WebView/WebPDFView.mm:
(removeUselessMenuItemSeparators):
Modified Paths
Diff
Modified: trunk/Source/WebKit/mac/ChangeLog (185325 => 185326)
--- trunk/Source/WebKit/mac/ChangeLog 2015-06-08 19:47:57 UTC (rev 185325)
+++ trunk/Source/WebKit/mac/ChangeLog 2015-06-08 19:55:23 UTC (rev 185326)
@@ -1,3 +1,10 @@
+2015-06-08 Anders Carlsson <[email protected]>
+
+ Try to fix the Mavericks build.
+
+ * WebView/WebPDFView.mm:
+ (removeUselessMenuItemSeparators):
+
2015-06-07 Anders Carlsson <[email protected]>
Remove WebNSArrayExtras
Modified: trunk/Source/WebKit/mac/WebView/WebPDFView.mm (185325 => 185326)
--- trunk/Source/WebKit/mac/WebView/WebPDFView.mm 2015-06-08 19:47:57 UTC (rev 185325)
+++ trunk/Source/WebKit/mac/WebView/WebPDFView.mm 2015-06-08 19:55:23 UTC (rev 185326)
@@ -1154,7 +1154,7 @@
BOOL removePreviousItemIfSeparator = YES;
for (NSInteger index = menuItems.count - 1; index >= 0; --index) {
- NSMenuItem *item = menuItems[index];
+ NSMenuItem *item = [menuItems objectAtIndex:index];
ASSERT([item isKindOfClass:[NSMenuItem class]]);
BOOL itemIsSeparator = [item isSeparatorItem];
@@ -1165,7 +1165,7 @@
}
// This could leave us with one initial separator; kill it off too
- if (menuItems.count && [menuItems[0] isSeparatorItem])
+ if (menuItems.count && [[menuItems objectAtIndex:0] isSeparatorItem])
[menuItems removeObjectAtIndex:0];
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes