Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: Source/WebCore/platform/gtk/RenderThemeGtk.cpp

Issue 8758009: Merge 100408 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/efl/RenderThemeEfl.cpp ('k') | Source/WebCore/rendering/RenderThemeMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/gtk/RenderThemeGtk.cpp
===================================================================
--- Source/WebCore/platform/gtk/RenderThemeGtk.cpp (revision 101562)
+++ Source/WebCore/platform/gtk/RenderThemeGtk.cpp (working copy)
@@ -525,9 +525,10 @@
Node* node = renderObject->node();
if (!node)
return false;
+ if (!node->isMediaControlElement())
+ return false;
- MediaControlPlayButtonElement* button = static_cast<MediaControlPlayButtonElement*>(node);
- return paintMediaButton(renderObject, paintInfo.context, rect, button->displayType() == MediaPlayButton ? GTK_STOCK_MEDIA_PLAY : GTK_STOCK_MEDIA_PAUSE);
+ return paintMediaButton(renderObject, paintInfo.context, rect, mediaControlElementType(node) == MediaPlayButton ? GTK_STOCK_MEDIA_PLAY : GTK_STOCK_MEDIA_PAUSE);
}
bool RenderThemeGtk::paintMediaSeekBackButton(RenderObject* renderObject, const PaintInfo& paintInfo, const IntRect& rect)
« no previous file with comments | « Source/WebCore/platform/efl/RenderThemeEfl.cpp ('k') | Source/WebCore/rendering/RenderThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698