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

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

Issue 1126883002: Change all one-off lifecycle callers to FrameView::updateLayoutAndStyleForPainting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1316
1317 void WebLocalFrameImpl::setCaretVisible(bool visible) 1317 void WebLocalFrameImpl::setCaretVisible(bool visible)
1318 { 1318 {
1319 frame()->selection().setCaretVisible(visible); 1319 frame()->selection().setCaretVisible(visible);
1320 } 1320 }
1321 1321
1322 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport) 1322 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport)
1323 { 1323 {
1324 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; 1324 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping;
1325 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie wport)); 1325 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie wport));
1326 frame()->document()->layoutView()->layer()->hitTest(result); 1326 frame()->document()->layoutView()->hitTest(result);
1327 1327
1328 if (Node* node = result.innerNode()) 1328 if (Node* node = result.innerNode())
1329 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); 1329 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node);
1330 return VisiblePosition(); 1330 return VisiblePosition();
1331 } 1331 }
1332 1332
1333 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() 1333 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported()
1334 { 1334 {
1335 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); 1335 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement()));
1336 if (container && container->supportsInputMethod()) 1336 if (container && container->supportsInputMethod())
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 { 2106 {
2107 m_frameWidget = frameWidget; 2107 m_frameWidget = frameWidget;
2108 } 2108 }
2109 2109
2110 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2110 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2111 { 2111 {
2112 return m_frameWidget; 2112 return m_frameWidget;
2113 } 2113 }
2114 2114
2115 } // namespace blink 2115 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698