| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |