Changeset 61957 in webkit


Ignore:
Timestamp:
Jun 26, 2010 10:23:42 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-06-26 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r61943.
http://trac.webkit.org/changeset/61943
https://bugs.webkit.org/show_bug.cgi?id=41251

Totally breaks webkit_unit_tests on Chromium linux and mac
(Requested by mnaganov on #webkit).

  • WebKit.gyp:
  • src/WebFrameImpl.cpp: (WebKit::frameContentAsPlainText):
  • tests/RunAllTests.cpp: (main):
  • tests/WebFrameTest.cpp: Removed.
  • tests/data/iframes_test.html: Removed.
  • tests/data/invisible_iframe.html: Removed.
  • tests/data/visible_iframe.html: Removed.
  • tests/data/zero_sized_iframe.html: Removed.
Location:
trunk/WebKit/chromium
Files:
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/chromium/ChangeLog

    r61950 r61957  
     12010-06-26  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r61943.
     4        http://trac.webkit.org/changeset/61943
     5        https://bugs.webkit.org/show_bug.cgi?id=41251
     6
     7        Totally breaks webkit_unit_tests on Chromium linux and mac
     8        (Requested by mnaganov on #webkit).
     9
     10        * WebKit.gyp:
     11        * src/WebFrameImpl.cpp:
     12        (WebKit::frameContentAsPlainText):
     13        * tests/RunAllTests.cpp:
     14        (main):
     15        * tests/WebFrameTest.cpp: Removed.
     16        * tests/data/iframes_test.html: Removed.
     17        * tests/data/invisible_iframe.html: Removed.
     18        * tests/data/visible_iframe.html: Removed.
     19        * tests/data/zero_sized_iframe.html: Removed.
     20
    1212010-06-26  Tony Gentilcore  <tonyg@chromium.org>
    222
  • trunk/WebKit/chromium/WebKit.gyp

    r61943 r61957  
    560560                '<(chromium_src_dir)/base/base.gyp:base',
    561561                '<(chromium_src_dir)/base/base.gyp:base_i18n',
    562                 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support',
    563562                '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib',
    564563            ],
     
    572571                'tests/KURLTest.cpp',
    573572                'tests/RunAllTests.cpp',
    574                 'tests/WebFrameTest.cpp',
    575573            ],
    576574            'conditions': [
  • trunk/WebKit/chromium/src/WebFrameImpl.cpp

    r61943 r61957  
    234234    FrameTree* frameTree = frame->tree();
    235235    for (Frame* curChild = frameTree->firstChild(); curChild; curChild = curChild->tree()->nextSibling()) {
    236         // Ignore the text of non-visible frames.
    237         RenderView* contentRenderer = curChild->contentRenderer();
    238         RenderPart* ownerRenderer = curChild->ownerRenderer();       
    239         if (!contentRenderer || !contentRenderer->width() || !contentRenderer->height()
    240             || (contentRenderer->x() + contentRenderer->width() <= 0) || (contentRenderer->y() + contentRenderer->height() <= 0)
    241             || (ownerRenderer && ownerRenderer->style() && ownerRenderer->style()->visibility() != VISIBLE)) {
    242             continue;
    243         }
    244 
    245236        // Make sure the frame separator won't fill up the buffer, and give up if
    246237        // it will. The danger is if the separator will make the buffer longer than
  • trunk/WebKit/chromium/tests/RunAllTests.cpp

    r61943 r61957  
    3434#include "WebKit.h"
    3535#include "WebKitClient.h"
    36 #include <webkit/support/webkit_support.h>
     36
     37// WebKitClient has a protected destructor, so we need to subclass.
     38class DummyWebKitClient : public WebKit::WebKitClient {
     39};
    3740
    3841int main(int argc, char** argv)
    3942{
    40     TestSuite testSuite(argc, argv);
    41     // TestSuite must be created before SetUpTestEnvironment so it performs
    42     // initializations needed by WebKit support.
    43     webkit_support::SetUpTestEnvironmentForUnitTests();
    44     int result = testSuite.Run();
    45     webkit_support::TearDownTestEnvironment();
     43    DummyWebKitClient dummyClient;
     44    WebKit::initialize(&dummyClient);
     45
     46    int result = TestSuite(argc, argv).Run();
     47
     48    WebKit::shutdown();
    4649    return result;
    4750}
Note: See TracChangeset for help on using the changeset viewer.