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

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

Issue 454643002: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests added Created 6 years, 3 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) 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 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 { 1858 {
1859 m_fullscreenController->exitFullScreenForElement(element); 1859 m_fullscreenController->exitFullScreenForElement(element);
1860 } 1860 }
1861 1861
1862 void WebViewImpl::clearCompositedSelectionBounds() 1862 void WebViewImpl::clearCompositedSelectionBounds()
1863 { 1863 {
1864 if (m_layerTreeView) 1864 if (m_layerTreeView)
1865 m_layerTreeView->clearSelection(); 1865 m_layerTreeView->clearSelection();
1866 } 1866 }
1867 1867
1868 void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBound& ancho r, const WebSelectionBound& focus)
1869 {
1870 if (m_layerTreeView)
1871 m_layerTreeView->registerSelection(anchor, focus);
1872 }
1873
1868 bool WebViewImpl::hasHorizontalScrollbar() 1874 bool WebViewImpl::hasHorizontalScrollbar()
1869 { 1875 {
1870 return mainFrameImpl()->frameView()->horizontalScrollbar(); 1876 return mainFrameImpl()->frameView()->horizontalScrollbar();
1871 } 1877 }
1872 1878
1873 bool WebViewImpl::hasVerticalScrollbar() 1879 bool WebViewImpl::hasVerticalScrollbar()
1874 { 1880 {
1875 return mainFrameImpl()->frameView()->verticalScrollbar(); 1881 return mainFrameImpl()->frameView()->verticalScrollbar();
1876 } 1882 }
1877 1883
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after
4273 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4279 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4274 4280
4275 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4281 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4276 return false; 4282 return false;
4277 4283
4278 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4284 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4279 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4285 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4280 } 4286 }
4281 4287
4282 } // namespace blink 4288 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698