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

Side by Side Diff: Source/web/WebLocalFrameImpl.cpp

Issue 999033002: Advance document lifecycle to CompositingClean prior to hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 months 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
OLDNEW
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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 1291
1292 void WebLocalFrameImpl::setCaretVisible(bool visible) 1292 void WebLocalFrameImpl::setCaretVisible(bool visible)
1293 { 1293 {
1294 frame()->selection().setCaretVisible(visible); 1294 frame()->selection().setCaretVisible(visible);
1295 } 1295 }
1296 1296
1297 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport) 1297 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport)
1298 { 1298 {
1299 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; 1299 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping;
1300 HitTestResult result(frame()->view()->viewportToContents(pointInViewport)); 1300 HitTestResult result(frame()->view()->viewportToContents(pointInViewport));
1301 frame()->document()->layoutView()->layer()->hitTest(request, result); 1301 frame()->document()->layoutView()->hitTest(request, result);
1302 1302
1303 if (Node* node = result.innerNode()) 1303 if (Node* node = result.innerNode())
1304 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); 1304 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node);
1305 return VisiblePosition(); 1305 return VisiblePosition();
1306 } 1306 }
1307 1307
1308 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() 1308 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported()
1309 { 1309 {
1310 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); 1310 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement()));
1311 if (container && container->supportsInputMethod()) 1311 if (container && container->supportsInputMethod())
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
2046 { 2046 {
2047 m_frameWidget = frameWidget; 2047 m_frameWidget = frameWidget;
2048 } 2048 }
2049 2049
2050 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2050 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2051 { 2051 {
2052 return m_frameWidget; 2052 return m_frameWidget;
2053 } 2053 }
2054 2054
2055 } // namespace blink 2055 } // namespace blink
OLDNEW
« Source/core/dom/DocumentLifecycle.cpp ('K') | « Source/core/paint/DeprecatedPaintLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698