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

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
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 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 1306
1307 void WebLocalFrameImpl::setCaretVisible(bool visible) 1307 void WebLocalFrameImpl::setCaretVisible(bool visible)
1308 { 1308 {
1309 frame()->selection().setCaretVisible(visible); 1309 frame()->selection().setCaretVisible(visible);
1310 } 1310 }
1311 1311
1312 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport) 1312 VisiblePosition WebLocalFrameImpl::visiblePositionForViewportPoint(const WebPoin t& pointInViewport)
1313 { 1313 {
1314 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping; 1314 HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | H itTestRequest::Active | HitTestRequest::IgnoreClipping;
1315 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie wport)); 1315 HitTestResult result(request, frame()->view()->viewportToContents(pointInVie wport));
1316 frame()->document()->layoutView()->layer()->hitTest(result); 1316 frame()->document()->layoutView()->hitTest(result);
1317 1317
1318 if (Node* node = result.innerNode()) 1318 if (Node* node = result.innerNode())
1319 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node); 1319 return frame()->selection().selection().visiblePositionRespectingEditing Boundary(result.localPoint(), node);
1320 return VisiblePosition(); 1320 return VisiblePosition();
1321 } 1321 }
1322 1322
1323 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported() 1323 WebPlugin* WebLocalFrameImpl::focusedPluginIfInputMethodSupported()
1324 { 1324 {
1325 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement())); 1325 WebPluginContainerImpl* container = WebLocalFrameImpl::pluginContainerFromNo de(frame(), WebNode(frame()->document()->focusedElement()));
1326 if (container && container->supportsInputMethod()) 1326 if (container && container->supportsInputMethod())
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 { 2096 {
2097 m_frameWidget = frameWidget; 2097 m_frameWidget = frameWidget;
2098 } 2098 }
2099 2099
2100 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const 2100 WebFrameWidgetImpl* WebLocalFrameImpl::frameWidget() const
2101 { 2101 {
2102 return m_frameWidget; 2102 return m_frameWidget;
2103 } 2103 }
2104 2104
2105 } // namespace blink 2105 } // namespace blink
OLDNEW
« Source/core/page/EventHandler.cpp ('K') | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698