| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 3458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3469 | 3469 |
| 3470 void WebViewImpl::copyImageAt(const WebPoint& point) | 3470 void WebViewImpl::copyImageAt(const WebPoint& point) |
| 3471 { | 3471 { |
| 3472 if (!m_page) | 3472 if (!m_page) |
| 3473 return; | 3473 return; |
| 3474 | 3474 |
| 3475 HitTestResult result = hitTestResultForWindowPos(point); | 3475 HitTestResult result = hitTestResultForWindowPos(point); |
| 3476 Node* node = result.innerNonSharedNode(); | 3476 Node* node = result.innerNonSharedNode(); |
| 3477 ASSERT(node); | 3477 ASSERT(node); |
| 3478 | 3478 |
| 3479 if (!isHTMLCanvasElement(*node) && result.absoluteImageURL().isEmpty()) { | 3479 if (!isHTMLCanvasElement(*node) && result.absoluteImageURL().isEmpty() |
| 3480 && !isHTMLVideoElement(*node)) { |
| 3480 // There isn't actually an image at these coordinates. Might be because | 3481 // There isn't actually an image at these coordinates. Might be because |
| 3481 // the window scrolled while the context menu was open or because the pa
ge | 3482 // the window scrolled while the context menu was open or because the pa
ge |
| 3482 // changed itself between when we thought there was an image here and wh
en | 3483 // changed itself between when we thought there was an image here and wh
en |
| 3483 // we actually tried to retreive the image. | 3484 // we actually tried to retreive the image. |
| 3484 // | 3485 // |
| 3485 // FIXME: implement a cache of the most recent HitTestResult to avoid ha
ving | 3486 // FIXME: implement a cache of the most recent HitTestResult to avoid ha
ving |
| 3486 // to do two hit tests. | 3487 // to do two hit tests. |
| 3487 return; | 3488 return; |
| 3488 } | 3489 } |
| 3489 | 3490 |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4525 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4526 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 4526 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4527 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 4527 } | 4528 } |
| 4528 | 4529 |
| 4529 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4530 void WebViewImpl::forceNextWebGLContextCreationToFail() |
| 4530 { | 4531 { |
| 4531 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4532 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
| 4532 } | 4533 } |
| 4533 | 4534 |
| 4534 } // namespace blink | 4535 } // namespace blink |
| OLD | NEW |