Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 354613002: Add test to track the number of hit tests on various events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 return 0; 289 return 0;
290 } 290 }
291 291
292 bool isPartial; 292 bool isPartial;
293 unsigned needsLayoutObjects; 293 unsigned needsLayoutObjects;
294 unsigned totalObjects; 294 unsigned totalObjects;
295 contextFrame->countObjectsNeedingLayout(needsLayoutObjects, totalObjects, is Partial); 295 contextFrame->countObjectsNeedingLayout(needsLayoutObjects, totalObjects, is Partial);
296 return needsLayoutObjects; 296 return needsLayoutObjects;
297 } 297 }
298 298
299 unsigned Internals::hitTestCountDelta(Document* doc, ExceptionState& exceptionSt ate) const
esprehn 2014/06/26 02:33:50 no "Delta".
Rick Byers 2014/06/26 15:35:18 Done.
300 {
301 if (!doc) {
302 exceptionState.throwDOMException(InvalidAccessError, "Must supply docume nt to check");
303 return 0;
304 }
305
306 return doc->renderView()->hitTestCountDelta();
307 }
308
309
299 bool Internals::isPreloaded(const String& url) 310 bool Internals::isPreloaded(const String& url)
300 { 311 {
301 Document* document = contextDocument(); 312 Document* document = contextDocument();
302 return document->fetcher()->isPreloaded(url); 313 return document->fetcher()->isPreloaded(url);
303 } 314 }
304 315
305 bool Internals::isLoadingFromMemoryCache(const String& url) 316 bool Internals::isLoadingFromMemoryCache(const String& url)
306 { 317 {
307 if (!contextDocument()) 318 if (!contextDocument())
308 return false; 319 return false;
(...skipping 2014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2323 } 2334 }
2324 networkStateNotifier().setWebConnectionTypeForTest(webtype); 2335 networkStateNotifier().setWebConnectionTypeForTest(webtype);
2325 } 2336 }
2326 2337
2327 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) 2338 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context)
2328 { 2339 {
2329 return context->hitRegionsCount(); 2340 return context->hitRegionsCount();
2330 } 2341 }
2331 2342
2332 } // namespace WebCore 2343 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698