Issue repaint at setUnavailablePluginIndicatorIsHidden() only when embedded object...
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Dec 2014 22:22:15 +0000 (22:22 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Dec 2014 22:22:15 +0000 (22:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=139311

Reviewed by Tim Horton.

Not testable.

* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::setUnavailablePluginIndicatorIsHidden):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176874 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderEmbeddedObject.cpp

index d50a8c5..bf48044 100644 (file)
@@ -1,3 +1,15 @@
+2014-12-05  Zalan Bujtas  <zalan@apple.com>
+
+        Issue repaint at setUnavailablePluginIndicatorIsHidden() only when embedded object's indicator status changes.
+        https://bugs.webkit.org/show_bug.cgi?id=139311
+
+        Reviewed by Tim Horton.
+
+        Not testable.
+
+        * rendering/RenderEmbeddedObject.cpp:
+        (WebCore::RenderEmbeddedObject::setUnavailablePluginIndicatorIsHidden):
+
 2014-12-05  Andreas Kling  <akling@apple.com>
 
         PassRef should deref on destruction if pointee was not moved.
index 5ca50aa..554a083 100644 (file)
@@ -342,8 +342,10 @@ void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint
 
 void RenderEmbeddedObject::setUnavailablePluginIndicatorIsHidden(bool hidden)
 {
-    m_isUnavailablePluginIndicatorHidden = hidden;
+    if (m_isUnavailablePluginIndicatorHidden == hidden)
+        return;
 
+    m_isUnavailablePluginIndicatorHidden = hidden;
     repaint();
 }