Remove some unneeded code noticed while looking at StylePendingImage
[WebKit-https.git] / Source / WebCore / ChangeLog
index 13259ebd6c5e951f068cd8549ab949575d4c65a9..e3e733df017411d1e4ed632705ba28c8eac20203 100644 (file)
@@ -1,3 +1,24 @@
+2013-12-11  Darin Adler  <darin@apple.com>
+
+        Remove some unneeded code noticed while looking at StylePendingImage
+        https://bugs.webkit.org/show_bug.cgi?id=125618
+
+        Reviewed by Andreas Kling.
+
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::loadPendingImage): Removed redundant function calls.
+
+        * rendering/RenderImageResource.cpp: Removed unneeded nullImage and
+        usesImageContainerSize member functions.
+        (WebCore::RenderImageResource::image): Use Image::nullImage directly instead of
+        through RenderImageResourceImage::nullImage.
+
+        * rendering/RenderImageResource.h: Removed unneeded usesImageContainerSize
+        and nullImage functions. Also removed unneeded includes.
+
+        * rendering/RenderImageResourceStyleImage.h: Removed unneeded
+        usesImageContainerSize override. Nobody was calling it.
+
 2013-12-11  Benjamin Poulain  <bpoulain@apple.com>
 
         Add the CFNetwork implementation of the asynchronous ResourceHandle