Title: [238226] trunk/Source/WebCore
Revision
238226
Author
[email protected]
Date
2018-11-15 06:58:16 -0800 (Thu, 15 Nov 2018)

Log Message

[LFC] FormattingContext base class should not declare computeStaticPosition.
https://bugs.webkit.org/show_bug.cgi?id=191683

Reviewed by Antti Koivisto.

Apparently only BlockFormattingContext uses it.

* layout/FormattingContext.h:
* layout/blockformatting/BlockFormattingContext.h:
* layout/inlineformatting/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::computeStaticPosition const): Deleted.
* layout/inlineformatting/InlineFormattingContext.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (238225 => 238226)


--- trunk/Source/WebCore/ChangeLog	2018-11-15 14:42:22 UTC (rev 238225)
+++ trunk/Source/WebCore/ChangeLog	2018-11-15 14:58:16 UTC (rev 238226)
@@ -1,3 +1,18 @@
+2018-11-15  Zalan Bujtas  <[email protected]>
+
+        [LFC] FormattingContext base class should not declare computeStaticPosition.
+        https://bugs.webkit.org/show_bug.cgi?id=191683
+
+        Reviewed by Antti Koivisto.
+
+        Apparently only BlockFormattingContext uses it.
+
+        * layout/FormattingContext.h:
+        * layout/blockformatting/BlockFormattingContext.h:
+        * layout/inlineformatting/InlineFormattingContext.cpp:
+        (WebCore::Layout::InlineFormattingContext::computeStaticPosition const): Deleted.
+        * layout/inlineformatting/InlineFormattingContext.h:
+
 2018-11-14  Zalan Bujtas  <[email protected]>
 
         [LFC][IFC] Add support for in-flow positioned inline boxes.

Modified: trunk/Source/WebCore/layout/FormattingContext.h (238225 => 238226)


--- trunk/Source/WebCore/layout/FormattingContext.h	2018-11-15 14:42:22 UTC (rev 238225)
+++ trunk/Source/WebCore/layout/FormattingContext.h	2018-11-15 14:58:16 UTC (rev 238226)
@@ -69,8 +69,6 @@
     LayoutState& layoutState() const;
     const Box& root() const { return *m_root; }
 
-    virtual void computeStaticPosition(const Box&) const = 0;
-
     void computeBorderAndPadding(const Box&) const;
 
 #ifndef NDEBUG

Modified: trunk/Source/WebCore/layout/blockformatting/BlockFormattingContext.h (238225 => 238226)


--- trunk/Source/WebCore/layout/blockformatting/BlockFormattingContext.h	2018-11-15 14:42:22 UTC (rev 238225)
+++ trunk/Source/WebCore/layout/blockformatting/BlockFormattingContext.h	2018-11-15 14:58:16 UTC (rev 238226)
@@ -56,7 +56,7 @@
     void computeWidthAndMargin(const Box&) const;
     void computeHeightAndMargin(const Box&) const;
 
-    void computeStaticPosition(const Box&) const override;
+    void computeStaticPosition(const Box&) const;
     void computeFloatingPosition(const FloatingContext&, const Box&) const;
     void computePositionToAvoidFloats(const FloatingContext&, const Box&) const;
     void computeVerticalPositionForFloatClear(const FloatingContext&, const Box&) const;

Modified: trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp (238225 => 238226)


--- trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp	2018-11-15 14:42:22 UTC (rev 238225)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.cpp	2018-11-15 14:58:16 UTC (rev 238226)
@@ -442,10 +442,6 @@
     }
 }
 
-void InlineFormattingContext::computeStaticPosition(const Box&) const
-{
-}
-
 void InlineFormattingContext::collectInlineContentForSubtree(const Box& root, InlineRunProvider& inlineRunProvider) const
 {
     // Collect inline content recursively and set breaking rules for the inline elements (for paddings, margins, positioned element etc).

Modified: trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.h (238225 => 238226)


--- trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.h	2018-11-15 14:42:22 UTC (rev 238225)
+++ trunk/Source/WebCore/layout/inlineformatting/InlineFormattingContext.h	2018-11-15 14:58:16 UTC (rev 238226)
@@ -120,7 +120,6 @@
     void computeHeightAndMargin(const Box&) const;
     void computeWidthAndMargin(const Box&) const;
     void computeFloatPosition(const FloatingContext&, Line&, const Box&) const;
-    void computeStaticPosition(const Box&) const override;
     void placeInFlowPositionedChildren(Line::RunRange) const;
 
     void collectInlineContent(InlineRunProvider&) const;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to