Use lineageOfType to simplify two rendering helpers.
[WebKit-https.git] / Source / WebCore / ChangeLog
index 10b3a0bd2825e16a2f1c8cd9623aa93f54ee67f4..47c292ef981d5118e46e2abbae312adf5bdbc861 100644 (file)
@@ -1,3 +1,22 @@
+2014-01-05  Andreas Kling  <akling@apple.com>
+
+        Use lineageOfType to simplify two rendering helpers.
+        <https://webkit.org/b/126498>
+
+        Reviewed by Antti Koivisto.
+
+        * rendering/RenderRuby.cpp:
+        (WebCore::findRubyRunParent):
+        * rendering/svg/SVGRenderSupport.cpp:
+        (WebCore::SVGRenderSupport::findTreeRootObject):
+
+            Simplify two functions that walk their parent chain to find the
+            closest ancestor of a certain type.
+
+        * rendering/RenderRubyRun.h:
+
+            Add requisite isRendererOfType<RenderRubyRun>().
+
 2014-01-05  Csaba Osztrogon√°c  <ossy@webkit.org>
 
         Fix the Mac build too.