OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |