Changeset 230466 in webkit


Ignore:
Timestamp:
Apr 9, 2018 8:03:28 PM (6 years ago)
Author:
Alan Bujtas
Message:

[LayoutReloaded] Remove Layout.InitialContainingBlock class
https://bugs.webkit.org/show_bug.cgi?id=184436

Reviewed by Antti Koivisto.

  • LayoutReloaded/LayoutTree/Box.js:

(Layout.Box.prototype.establishesBlockFormattingContext):

  • LayoutReloaded/LayoutTree/InitialBlockContainer.js: Removed.
  • LayoutReloaded/TreeBuilder.js:

(TreeBuilder.prototype.createTree):

  • LayoutReloaded/test/index.html:
Location:
trunk/Tools
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r230464 r230466  
     12018-04-09  Zalan Bujtas  <zalan@apple.com>
     2
     3        [LayoutReloaded] Remove Layout.InitialContainingBlock class
     4        https://bugs.webkit.org/show_bug.cgi?id=184436
     5
     6        Reviewed by Antti Koivisto.
     7
     8        * LayoutReloaded/LayoutTree/Box.js:
     9        (Layout.Box.prototype.establishesBlockFormattingContext):
     10        * LayoutReloaded/LayoutTree/InitialBlockContainer.js: Removed.
     11        * LayoutReloaded/TreeBuilder.js:
     12        (TreeBuilder.prototype.createTree):
     13        * LayoutReloaded/test/index.html:
     14
    1152018-04-09  Zalan Bujtas  <zalan@apple.com>
    216
  • trunk/Tools/LayoutReloaded/LayoutTree/Box.js

    r230464 r230466  
    151151
    152152    establishesBlockFormattingContext() {
     153        // Initial Containing Block always creates a new (inital) block formatting context.
     154        if (!this.parent())
     155            return true;
    153156        // 9.4.1 Block formatting contexts
    154157        // Floats, absolutely positioned elements, block containers (such as inline-blocks, table-cells, and table-captions)
  • trunk/Tools/LayoutReloaded/TreeBuilder.js

    r230373 r230466  
    2929    createTree(document, renderTreeDump) {
    3030        // Root.
    31         let initialBlockContainer = new Layout.InitialBlockContainer(document, parseInt(renderTreeDump.substring(0, renderTreeDump.indexOf("("))));
     31        let initialBlockContainer = new Layout.BlockContainer(document, parseInt(renderTreeDump.substring(0, renderTreeDump.indexOf("("))));
    3232        initialBlockContainer.setRendererName("RenderView");
    3333        renderTreeDump = renderTreeDump.substring(renderTreeDump.indexOf("|") + 1);
  • trunk/Tools/LayoutReloaded/test/index.html

    r230464 r230466  
    100100addJS("../LayoutTree/Container.js");
    101101addJS("../LayoutTree/BlockContainer.js");
    102 addJS("../LayoutTree/InitialBlockContainer.js");
    103102addJS("../LayoutTree/InlineContainer.js");
    104103addJS("../LayoutTree/InlineBox.js");
Note: See TracChangeset for help on using the changeset viewer.