| 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 3782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3793 Position endPosition = endVisiblePosition.deepEquivalent(); | 3793 Position endPosition = endVisiblePosition.deepEquivalent(); |
| 3794 | 3794 |
| 3795 // document() will return null if -webkit-user-select is set to none. | 3795 // document() will return null if -webkit-user-select is set to none. |
| 3796 if (!startPosition.document() || !endPosition.document()) | 3796 if (!startPosition.document() || !endPosition.document()) |
| 3797 return; | 3797 return; |
| 3798 | 3798 |
| 3799 RefPtrWillBeRawPtr<Range> range = Range::create(*startPosition.document(), s
tartPosition, endPosition); | 3799 RefPtrWillBeRawPtr<Range> range = Range::create(*startPosition.document(), s
tartPosition, endPosition); |
| 3800 if (!range) | 3800 if (!range) |
| 3801 return; | 3801 return; |
| 3802 | 3802 |
| 3803 clipHtml = createMarkup(range.get(), 0, AnnotateForInterchange, false, Resol
veNonLocalURLs); | 3803 clipHtml = createMarkup(range.get(), AnnotateForInterchange, false, ResolveN
onLocalURLs); |
| 3804 } | 3804 } |
| 3805 | 3805 |
| 3806 void WebViewImpl::hidePopups() | 3806 void WebViewImpl::hidePopups() |
| 3807 { | 3807 { |
| 3808 hideSelectPopup(); | 3808 hideSelectPopup(); |
| 3809 if (m_pagePopup) | 3809 if (m_pagePopup) |
| 3810 closePagePopup(m_pagePopup.get()); | 3810 closePagePopup(m_pagePopup.get()); |
| 3811 } | 3811 } |
| 3812 | 3812 |
| 3813 void WebViewImpl::setIsTransparent(bool isTransparent) | 3813 void WebViewImpl::setIsTransparent(bool isTransparent) |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4525 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4525 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 4526 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4526 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 4527 } | 4527 } |
| 4528 | 4528 |
| 4529 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4529 void WebViewImpl::forceNextWebGLContextCreationToFail() |
| 4530 { | 4530 { |
| 4531 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4531 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
| 4532 } | 4532 } |
| 4533 | 4533 |
| 4534 } // namespace blink | 4534 } // namespace blink |
| OLD | NEW |