[webkit-reviews] review granted: [Bug 102299] Add a new shared class WebCoreFullScreenWarningView which presents a styled warning message. : [Attachment 174290] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 16 12:56:20 PST 2012
Alexey Proskuryakov <ap at webkit.org> has granted Jer Noble
<jer.noble at apple.com>'s request for review:
Bug 102299: Add a new shared class WebCoreFullScreenWarningView which presents
a styled warning message.
https://bugs.webkit.org/show_bug.cgi?id=102299
Attachment 174290: Patch
https://bugs.webkit.org/attachment.cgi?id=174290&action=review
------- Additional Comments from Alexey Proskuryakov <ap at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=174290&action=review
I don't know why anyone in the world would do layout with anything other than
HTML :-p
r=style bot
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:28
> +#include "WebCoreFullScreenWarningView.h"
> +#include "LocalizedStrings.h"
There should be a blank line between these.
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:45
> +static const NSTimeInterval WarningViewHideDelay = 3.0;
You got all of them right, except for this one, should be just "3".
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:66
> + RetainPtr<NSFont> textFont = [NSFont
boldSystemFontOfSize:WarningViewTextSize];
No good in retaining it, just refcount churn.
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:67
> + RetainPtr<NSColor> textColor = [NSColor
colorWithCalibratedWhite:WarningViewTextWhite alpha:WarningViewTextAlpha];
No good in retaining it, just refcount churn.
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:91
> + RetainPtr<NSColor> backgroundColor = [NSColor
colorWithCalibratedWhite:WarningViewBackgroundWhite
alpha:WarningViewBackgroundAlpha];
No good in retaining it, just refcount churn.
> Source/WebCore/platform/mac/WebCoreFullScreenWarningView.mm:99
> + RetainPtr<NSColor> shadowColor = [NSColor
colorWithCalibratedWhite:WarningViewShadowWhite alpha:WarningViewShadowAlpha];
No good in retaining it, just refcount churn.
More information about the webkit-reviews
mailing list