Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=23661
Fix Chromium build.
* history/HistoryItem.h: need to include <wtf/OwnPtr.h>
* rendering/RenderThemeChromiumMac.mm:
(WebCore::RenderThemeChromiumMac::adjustMenuListStyle): isEnabled() is now on FormControlElement.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40517
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-02-02 Dmitry Titov <dimich@chromium.org>
+
+ Reviewed by Darin Adler.
+
+ https://bugs.webkit.org/show_bug.cgi?id=23661
+ Fix Chromium build.
+
+ * history/HistoryItem.h: need to include <wtf/OwnPtr.h>
+
+ * rendering/RenderThemeChromiumMac.mm:
+ (WebCore::RenderThemeChromiumMac::adjustMenuListStyle): isEnabled() is now on FormControlElement.
+
2009-02-02 Geoffrey Garen <ggaren@apple.com>
Build fix.
#include "IntPoint.h"
#include "PlatformString.h"
+#include <wtf/OwnPtr.h>
#if PLATFORM(MAC)
#import <wtf/RetainPtr.h>
// Set the foreground color to black or gray when we have the aqua look.
// Cast to RGB32 is to work around a compiler bug.
- style->setColor(e->isEnabled() ? static_cast<RGBA32>(Color::black) : Color::darkGray);
+ bool isEnabled = true;
+ if (FormControlElement* formControlElement = toFormControlElement(e))
+ isEnabled = formControlElement->isEnabled();
+
+ style->setColor(isEnabled ? static_cast<RGBA32>(Color::black) : Color::darkGray);
// Set the button's vertical size.
setSizeFromFont(style, menuListButtonSizes());