summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/qt/RenderThemeQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/qt/RenderThemeQt.cpp')
-rw-r--r--WebCore/platform/qt/RenderThemeQt.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/platform/qt/RenderThemeQt.cpp b/WebCore/platform/qt/RenderThemeQt.cpp
index ee66a35..9319493 100644
--- a/WebCore/platform/qt/RenderThemeQt.cpp
+++ b/WebCore/platform/qt/RenderThemeQt.cpp
@@ -47,16 +47,16 @@
#endif
#include "NotImplemented.h"
#include "Page.h"
-#include "QtStyleOptionWebComboBox.h"
#include "QWebPageClient.h"
+#include "QtStyleOptionWebComboBox.h"
#include "RenderBox.h"
#if ENABLE(PROGRESS_TAG)
#include "RenderProgress.h"
#endif
#include "RenderSlider.h"
#include "RenderTheme.h"
-#include "TimeRanges.h"
#include "ScrollbarThemeQt.h"
+#include "TimeRanges.h"
#include "UserAgentStyleSheets.h"
#include "qwebpage.h"
@@ -727,6 +727,9 @@ void RenderThemeQt::adjustProgressBarStyle(CSSStyleSelector*, RenderStyle* style
bool RenderThemeQt::paintProgressBar(RenderObject* o, const RenderObject::PaintInfo& pi, const IntRect& r)
{
+ if (!o->isProgress())
+ return true;
+
StylePainter p(this, pi);
if (!p.isValid())
return true;