Title: [139707] trunk/Source/WebCore
- Revision
- 139707
- Author
- [email protected]
- Date
- 2013-01-14 19:40:18 -0800 (Mon, 14 Jan 2013)
Log Message
Yet another unreviewed attempted QT build fix, this time because
it's falling over on Filters.
* rendering/RenderSnapshottedPlugIn.cpp:
(WebCore):
(WebCore::RenderSnapshottedPlugIn::paintReplacedSnapshotWithLabel):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (139706 => 139707)
--- trunk/Source/WebCore/ChangeLog 2013-01-15 03:12:29 UTC (rev 139706)
+++ trunk/Source/WebCore/ChangeLog 2013-01-15 03:40:18 UTC (rev 139707)
@@ -1,5 +1,14 @@
2013-01-14 Dean Jackson <[email protected]>
+ Yet another unreviewed attempted QT build fix, this time because
+ it's falling over on Filters.
+
+ * rendering/RenderSnapshottedPlugIn.cpp:
+ (WebCore):
+ (WebCore::RenderSnapshottedPlugIn::paintReplacedSnapshotWithLabel):
+
+2013-01-14 Dean Jackson <[email protected]>
+
Unreviewed EFL build fix.
* CMakeLists.txt:
Modified: trunk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp (139706 => 139707)
--- trunk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp 2013-01-15 03:12:29 UTC (rev 139706)
+++ trunk/Source/WebCore/rendering/RenderSnapshottedPlugIn.cpp 2013-01-15 03:40:18 UTC (rev 139707)
@@ -52,6 +52,7 @@
static const double showLabelAutomaticallyDelay = 3;
static const int snapshotLabelBlurRadius = 5;
+#if ENABLE(FILTERS)
class RenderSnapshottedPlugInBlurFilter : public Filter {
WTF_MAKE_FAST_ALLOCATED;
public:
@@ -96,6 +97,7 @@
m_blur->clearResult();
m_blur->apply();
}
+#endif
RenderSnapshottedPlugIn::RenderSnapshottedPlugIn(HTMLPlugInImageElement* element)
: RenderEmbeddedObject(element)
@@ -217,6 +219,7 @@
return labelImages[arrayIndex];
}
+#if ENABLE(FILTERS)
static PassRefPtr<Image> snapshottedPluginImageForLabelDisplay(PassRefPtr<Image> snapshot, const LayoutRect& blurRegion)
{
OwnPtr<ImageBuffer> snapshotBuffer = ImageBuffer::create(snapshot->size());
@@ -233,6 +236,7 @@
snapshotBuffer->context()->drawImageBuffer(blurFilter->output(), ColorSpaceDeviceRGB, roundedIntPoint(blurRegion.location()));
return snapshotBuffer->copyImage();
}
+#endif
void RenderSnapshottedPlugIn::paintReplacedSnapshotWithLabel(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
@@ -264,12 +268,14 @@
if (!snapshotImage || snapshotImage->isNull())
return;
+#if ENABLE(FILTERS)
RefPtr<Image> blurredSnapshotImage = m_snapshotResourceForLabel->image();
if (!blurredSnapshotImage || blurredSnapshotImage->isNull()) {
blurredSnapshotImage = snapshottedPluginImageForLabelDisplay(snapshotImage, labelRect);
m_snapshotResourceForLabel->setCachedImage(new CachedImage(blurredSnapshotImage.get()));
}
snapshotImage = blurredSnapshotImage;
+#endif
paintSnapshot(snapshotImage.get(), paintInfo, paintOffset);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes