Changeset 65516 in webkit
- Timestamp:
- Aug 17, 2010 10:45:48 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r65510 r65516 1 2010-08-17 Jay Civelli <jcivelli@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 Made WebFrame not report the text from hidden frames. 6 (some pages contain hidden frames with garbage text that 7 should not be indexed or used to detect the page's language). 8 https://bugs.webkit.org/show_bug.cgi?id=39456 9 10 * WebKit.gyp: 11 * public/WebCString.h: 12 (WebKit::operator<): 13 * public/WebURL.h: 14 (WebKit::operator<): 15 * src/WebCString.cpp: 16 (WebKit::WebCString::compare): 17 * src/WebFrameImpl.cpp: 18 (WebKit::frameContentAsPlainText): 19 * tests/RunAllTests.cpp: 20 (main): 21 * tests/WebFrameTest.cpp: Added. 22 1 23 2010-08-17 Kelly Norton <knorton@google.com> 2 24 -
trunk/WebKit/chromium/WebKit.gyp
r65501 r65516 701 701 '<(chromium_src_dir)/base/base.gyp:test_support_base', 702 702 '<(chromium_src_dir)/gpu/gpu.gyp:gles2_c_lib', 703 '<(chromium_src_dir)/webkit/support/webkit_support.gyp:webkit_support', 703 704 ], 704 705 'include_dirs': [ … … 719 720 ['OS=="win"', { 720 721 'sources': [ 721 # FIXME: Port PopupMenuTest to Linux and Mac.722 # FIXME: Port PopupMenuTest and WebFrameTest to Linux and Mac. 722 723 'tests/PopupMenuTest.cpp', 723 724 'tests/TransparencyWinTest.cpp', 724 725 'tests/UniscribeHelperTest.cpp', 726 'tests/WebFrameTest.cpp', 725 727 ], 726 728 }], -
trunk/WebKit/chromium/src/WebFrameImpl.cpp
r63841 r65516 235 235 FrameTree* frameTree = frame->tree(); 236 236 for (Frame* curChild = frameTree->firstChild(); curChild; curChild = curChild->tree()->nextSibling()) { 237 // Ignore the text of non-visible frames. 238 RenderView* contentRenderer = curChild->contentRenderer(); 239 RenderPart* ownerRenderer = curChild->ownerRenderer(); 240 if (!contentRenderer || !contentRenderer->width() || !contentRenderer->height() 241 || (contentRenderer->x() + contentRenderer->width() <= 0) || (contentRenderer->y() + contentRenderer->height() <= 0) 242 || (ownerRenderer && ownerRenderer->style() && ownerRenderer->style()->visibility() != VISIBLE)) { 243 continue; 244 } 245 237 246 // Make sure the frame separator won't fill up the buffer, and give up if 238 247 // it will. The danger is if the separator will make the buffer longer than -
trunk/WebKit/chromium/tests/RunAllTests.cpp
r61957 r65516 34 34 #include "WebKit.h" 35 35 #include "WebKitClient.h" 36 37 // WebKitClient has a protected destructor, so we need to subclass. 38 class DummyWebKitClient : public WebKit::WebKitClient { 39 }; 36 #include <webkit/support/webkit_support.h> 40 37 41 38 int main(int argc, char** argv) 42 39 { 43 DummyWebKitClient dummyClient;44 WebKit::initialize(&dummyClient);45 46 int result = TestSuite(argc, argv).Run();47 48 WebKit::shutdown();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(); 49 46 return result; 50 47 }
Note: See TracChangeset
for help on using the changeset viewer.