Skip to content

Commit

Permalink
Change dependency graph of runtime time enabled feature LayoutNGFragm…
Browse files Browse the repository at this point in the history
…entItem

This patch changes dependency graph of |LayoutNGFragmentItem| to make
|ScopedLayoutNGForTest()| to work with both LayoutNG and legacy layout for
running blink units for legacy layout tree.

When we use "implied_by", |LayoutNGEnabled()| is implemented as:
  static bool LayoutNGEnabled() {
    if (LayoutNGFragmentItemEnabled())
      return true;
    ... features in "implied_by".
    return is_layout_ng_enabled_;
  }

Change-Id: Id65a621bc6b041755b7897f9e5698aff26369370
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275952
Commit-Queue: Yoshifumi Inoue <[email protected]>
Reviewed-by: Yoshifumi Inoue <[email protected]>
Reviewed-by: Kent Tamura <[email protected]>
Cr-Commit-Position: refs/heads/master@{#784291}
  • Loading branch information
yosinch authored and Commit Bot committed Jul 1, 2020
1 parent b616523 commit 0d3e446
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
// provides a convenient way for testing legacy layout code path in blink
// unit tests.
name: "LayoutNG",
implied_by: ["LayoutNGBlockFragmentation", "LayoutNGFieldset", "LayoutNGFragmentItem", "LayoutNGGrid", "EditingNG", "BidiCaretAffinity", "LayoutNGTable", "LayoutNGFragmentTraversal"],
implied_by: ["LayoutNGFieldset", "LayoutNGGrid", "EditingNG", "BidiCaretAffinity", "LayoutNGTable"],
status: "stable",
},
{
Expand Down

0 comments on commit 0d3e446

Please sign in to comment.