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

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

Issue 705423002: Use expected main frame size from WebViewImpl when creating a new FrameView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing build break from bad rebase Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | 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 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 { 1663 {
1664 TRACE_EVENT0("blink", "WebLocalFrameImpl::createFrameView"); 1664 TRACE_EVENT0("blink", "WebLocalFrameImpl::createFrameView");
1665 1665
1666 ASSERT(frame()); // If frame() doesn't exist, we probably didn't init proper ly. 1666 ASSERT(frame()); // If frame() doesn't exist, we probably didn't init proper ly.
1667 1667
1668 WebViewImpl* webView = viewImpl(); 1668 WebViewImpl* webView = viewImpl();
1669 bool isLocalRoot = frame()->isLocalRoot(); 1669 bool isLocalRoot = frame()->isLocalRoot();
1670 if (isLocalRoot) 1670 if (isLocalRoot)
1671 webView->suppressInvalidations(true); 1671 webView->suppressInvalidations(true);
1672 1672
1673 frame()->createView(webView->size(), webView->baseBackgroundColor(), webView ->isTransparent()); 1673 frame()->createView(webView->mainFrameSize(), webView->baseBackgroundColor() , webView->isTransparent());
1674 if (webView->shouldAutoResize() && isLocalRoot) 1674 if (webView->shouldAutoResize() && isLocalRoot)
1675 frame()->view()->enableAutoSizeMode(webView->minAutoSize(), webView->max AutoSize()); 1675 frame()->view()->enableAutoSizeMode(webView->minAutoSize(), webView->max AutoSize());
1676 1676
1677 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForE mulation, m_inputEventsScaleFactorForEmulation); 1677 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffsetForE mulation, m_inputEventsScaleFactorForEmulation);
1678 1678
1679 if (isLocalRoot) 1679 if (isLocalRoot)
1680 webView->suppressInvalidations(false); 1680 webView->suppressInvalidations(false);
1681 } 1681 }
1682 1682
1683 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame* frame) 1683 WebLocalFrameImpl* WebLocalFrameImpl::fromFrame(LocalFrame* frame)
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 1973
1974 void WebLocalFrameImpl::invalidateAll() const 1974 void WebLocalFrameImpl::invalidateAll() const
1975 { 1975 {
1976 ASSERT(frame() && frame()->view()); 1976 ASSERT(frame() && frame()->view());
1977 FrameView* view = frame()->view(); 1977 FrameView* view = frame()->view();
1978 view->invalidateRect(view->frameRect()); 1978 view->invalidateRect(view->frameRect());
1979 invalidateScrollbar(); 1979 invalidateScrollbar();
1980 } 1980 }
1981 1981
1982 } // namespace blink 1982 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698