Remove unused RenderFragmentedFlow::createFragmentedFlowStyle.
authoremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Jan 2018 10:46:38 +0000 (10:46 +0000)
committeremilio@crisal.io <emilio@crisal.io@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Jan 2018 10:46:38 +0000 (10:46 +0000)
https://bugs.webkit.org/show_bug.cgi?id=182138

Reviewed by Manuel Rego Casasnovas.

Has no callers.

No new tests, just removes unused code so no behavior change.

* rendering/RenderFragmentedFlow.cpp:
* rendering/RenderFragmentedFlow.h:

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

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderFragmentedFlow.cpp
Source/WebCore/rendering/RenderFragmentedFlow.h

index ed61962..3258624 100644 (file)
@@ -1,5 +1,19 @@
 2018-01-26  Emilio Cobos Álvarez  <emilio@crisal.io>
 
+        Remove unused RenderFragmentedFlow::createFragmentedFlowStyle.
+        https://bugs.webkit.org/show_bug.cgi?id=182138
+
+        Reviewed by Manuel Rego Casasnovas.
+
+        Has no callers.
+
+        No new tests, just removes unused code so no behavior change.
+
+        * rendering/RenderFragmentedFlow.cpp:
+        * rendering/RenderFragmentedFlow.h:
+
+2018-01-26  Emilio Cobos Álvarez  <emilio@crisal.io>
+
         Remove useless RenderBlockFlow overrides.
         https://bugs.webkit.org/show_bug.cgi?id=182139
 
index c715af5..f5a9b8d 100644 (file)
@@ -64,21 +64,6 @@ RenderFragmentedFlow::RenderFragmentedFlow(Document& document, RenderStyle&& sty
     setIsRenderFragmentedFlow(true);
 }
 
-RenderStyle RenderFragmentedFlow::createFragmentedFlowStyle(const RenderStyle* parentStyle)
-{
-    auto newStyle = RenderStyle::create();
-    newStyle.inheritFrom(*parentStyle);
-    newStyle.setDisplay(BLOCK);
-    newStyle.setPosition(AbsolutePosition);
-    newStyle.setZIndex(0);
-    newStyle.setLeft(Length(0, Fixed));
-    newStyle.setTop(Length(0, Fixed));
-    newStyle.setWidth(Length(100, Percent));
-    newStyle.setHeight(Length(100, Percent));
-    newStyle.fontCascade().update(nullptr);
-    return newStyle;
-}
-
 void RenderFragmentedFlow::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
 {
     RenderBlockFlow::styleDidChange(diff, oldStyle);
index 98ad899..d699423 100644 (file)
@@ -99,8 +99,6 @@ public:
 
     virtual void layoutFlowExcludedObjects(bool) { }
 
-    static RenderStyle createFragmentedFlowStyle(const RenderStyle* parentStyle);
-
     void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
 
     void repaintRectangleInFragments(const LayoutRect&) const;