Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1295 { | 1295 { |
| 1296 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't | 1296 // FIXME(bokan): crbug.com/371902 - These scale/pinch transforms shouldn't |
| 1297 // be ad hoc and explicit. | 1297 // be ad hoc and explicit. |
| 1298 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); | 1298 PinchViewport& pinchViewport = frame()->page()->frameHost().pinchViewport(); |
| 1299 FloatPoint unscaledPoint(point); | 1299 FloatPoint unscaledPoint(point); |
| 1300 unscaledPoint.scale(1 / view()->pageScaleFactor(), 1 / view()->pageScaleFact or()); | 1300 unscaledPoint.scale(1 / view()->pageScaleFactor(), 1 / view()->pageScaleFact or()); |
| 1301 unscaledPoint.moveBy(pinchViewport.visibleRect().location()); | 1301 unscaledPoint.moveBy(pinchViewport.visibleRect().location()); |
| 1302 | 1302 |
| 1303 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; | 1303 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; |
| 1304 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(unsca ledPoint))); | 1304 HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(unsca ledPoint))); |
| 1305 frame()->document()->layoutView()->layer()->hitTest(request, result); | 1305 frame()->document()->layoutView()->hitTest(request, result); |
|
qiankun
2015/03/20 07:50:22
Also advance to CompositingClean state here.
| |
| 1306 | 1306 |
| 1307 if (Node* node = result.innerNode()) | 1307 if (Node* node = result.innerNode()) |
| 1308 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); | 1308 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); |
| 1309 return VisiblePosition(); | 1309 return VisiblePosition(); |
| 1310 } | 1310 } |
| 1311 | 1311 |
| 1312 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() | 1312 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() |
| 1313 { | 1313 { |
| 1314 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); | 1314 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); |
| 1315 if (container && container->supportsInputMethod()) | 1315 if (container && container->supportsInputMethod()) |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2050 { | 2050 { |
| 2051 m_frameWidget = frameWidget; | 2051 m_frameWidget = frameWidget; |
| 2052 } | 2052 } |
| 2053 | 2053 |
| 2054 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const | 2054 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const |
| 2055 { | 2055 { |
| 2056 return m_frameWidget; | 2056 return m_frameWidget; |
| 2057 } | 2057 } |
| 2058 | 2058 |
| 2059 } // namespace blink | 2059 } // namespace blink |
| OLD | NEW |