Changeset 150067 in webkit


Ignore:
Timestamp:
May 14, 2013, 5:51:59 AM (12 years ago)
Author:
abucur@adobe.com
Message:

Modify checkLayout to receive the log container as an optional parameter
https://bugs.webkit.org/show_bug.cgi?id=112793

Reviewed by Darin Adler.

Add a way to specify the container manually for checkLayout. This is helpful to measure regions for nested
named flows (and probably other cases as well).

  • resources/check-layout.js: Added an optional parameter to window.checkLayout.
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r150066 r150067  
     12013-05-14  Andrei Bucur  <abucur@adobe.com>
     2
     3        Modify checkLayout to receive the log container as an optional parameter
     4        https://bugs.webkit.org/show_bug.cgi?id=112793
     5
     6        Reviewed by Darin Adler.
     7
     8        Add a way to specify the container manually for checkLayout. This is helpful to measure regions for nested
     9        named flows (and probably other cases as well).
     10
     11        * resources/check-layout.js: Added an optional parameter to window.checkLayout.
     12
    1132013-04-30  Balazs Kelemen  <b.kelemen@sisa.samsung.com>
    214
  • trunk/LayoutTests/resources/check-layout.js

    r148973 r150067  
    180180}
    181181
    182 window.checkLayout = function(selectorList)
     182window.checkLayout = function(selectorList, overrideContainer)
    183183{
    184184    if (!selectorList) {
     
    195195        checkedLayout |= checkSubtreeExpectedValues(node, failures);
    196196
    197         var container = node.parentNode.className == 'container' ? node.parentNode : node;
     197        var container = overrideContainer || (node.parentNode.className == 'container' ? node.parentNode : node);
    198198
    199199        var pre = document.createElement('pre');
Note: See TracChangeset for help on using the changeset viewer.