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

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

Issue 54273005: DevTools: add ids to compositor frames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 matches.append(result.innerNode()->deprecatedShadowAncestorNode()); 1424 matches.append(result.innerNode()->deprecatedShadowAncestorNode());
1425 } else { 1425 } else {
1426 HitTestResult result(point, topPadding, rightPadding, bottomPadding, lef tPadding); 1426 HitTestResult result(point, topPadding, rightPadding, bottomPadding, lef tPadding);
1427 renderView->hitTest(request, result); 1427 renderView->hitTest(request, result);
1428 copyToVector(result.rectBasedTestResult(), matches); 1428 copyToVector(result.rectBasedTestResult(), matches);
1429 } 1429 }
1430 1430
1431 return StaticNodeList::adopt(matches); 1431 return StaticNodeList::adopt(matches);
1432 } 1432 }
1433 1433
1434 void Internals::emitInspectorDidBeginFrame() 1434 void Internals::emitInspectorDidBeginFrame(int frameId)
1435 { 1435 {
1436 contextDocument()->page()->inspectorController().didBeginFrame(); 1436 contextDocument()->page()->inspectorController().didBeginFrame(frameId);
1437 } 1437 }
1438 1438
1439 void Internals::emitInspectorDidCancelFrame() 1439 void Internals::emitInspectorDidCancelFrame()
1440 { 1440 {
1441 contextDocument()->page()->inspectorController().didCancelFrame(); 1441 contextDocument()->page()->inspectorController().didCancelFrame();
1442 } 1442 }
1443 1443
1444 bool Internals::hasSpellingMarker(Document* document, int from, int length, Exce ptionState&) 1444 bool Internals::hasSpellingMarker(Document* document, int from, int length, Exce ptionState&)
1445 { 1445 {
1446 if (!document || !document->frame()) 1446 if (!document || !document->frame())
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 return false; 2248 return false;
2249 sharedContext->extensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CONTEX T_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB); 2249 sharedContext->extensions()->loseContextCHROMIUM(Extensions3D::GUILTY_CONTEX T_RESET_ARB, Extensions3D::INNOCENT_CONTEXT_RESET_ARB);
2250 // To prevent tests that call loseSharedGraphicsContext3D from being 2250 // To prevent tests that call loseSharedGraphicsContext3D from being
2251 // flaky, we call finish so that the context is guaranteed to be lost 2251 // flaky, we call finish so that the context is guaranteed to be lost
2252 // synchronously (i.e. before returning). 2252 // synchronously (i.e. before returning).
2253 sharedContext->finish(); 2253 sharedContext->finish();
2254 return true; 2254 return true;
2255 } 2255 }
2256 2256
2257 } 2257 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698