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 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2081 return; | 2081 return; |
2082 paintWithContext(GraphicsContextBuilder(canvas).context(), rect); | 2082 paintWithContext(GraphicsContextBuilder(canvas).context(), rect); |
2083 } | 2083 } |
2084 | 2084 |
2085 void WebFrameImpl::createFrameView() | 2085 void WebFrameImpl::createFrameView() |
2086 { | 2086 { |
2087 ASSERT(m_frame); // If m_frame doesn't exist, we probably didn't init proper
ly. | 2087 ASSERT(m_frame); // If m_frame doesn't exist, we probably didn't init proper
ly. |
2088 | 2088 |
2089 WebViewImpl* webView = viewImpl(); | 2089 WebViewImpl* webView = viewImpl(); |
2090 m_frame->createView(webView->size(), Color::white, webView->isTransparent(),
webView->fixedLayoutSize(), webView->isFixedLayoutModeEnabled()); | 2090 m_frame->createView(webView->size(), Color::white, webView->isTransparent(),
webView->fixedLayoutSize(), webView->isFixedLayoutModeEnabled()); |
2091 if (webView->shouldAutoResize()) | 2091 if (webView->shouldAutoResize() && isMainFrame) |
2092 m_frame->view()->enableAutoSizeMode(true, webView->minAutoSize(), webVie
w->maxAutoSize()); | 2092 m_frame->view()->enableAutoSizeMode(true, webView->minAutoSize(), webVie
w->maxAutoSize()); |
2093 | 2093 |
2094 #if ENABLE(GESTURE_RECOGNIZER) | 2094 #if ENABLE(GESTURE_RECOGNIZER) |
2095 webView->resetGestureRecognizer(); | 2095 webView->resetGestureRecognizer(); |
2096 #endif | 2096 #endif |
2097 } | 2097 } |
2098 | 2098 |
2099 WebFrameImpl* WebFrameImpl::fromFrame(Frame* frame) | 2099 WebFrameImpl* WebFrameImpl::fromFrame(Frame* frame) |
2100 { | 2100 { |
2101 if (!frame) | 2101 if (!frame) |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2343 | 2343 |
2344 String scriptResult; | 2344 String scriptResult; |
2345 if (!result.getString(scriptResult)) | 2345 if (!result.getString(scriptResult)) |
2346 return; | 2346 return; |
2347 | 2347 |
2348 if (!m_frame->navigationScheduler()->locationChangePending()) | 2348 if (!m_frame->navigationScheduler()->locationChangePending()) |
2349 m_frame->document()->loader()->writer()->replaceDocument(scriptResult, o
wnerDocument.get()); | 2349 m_frame->document()->loader()->writer()->replaceDocument(scriptResult, o
wnerDocument.get()); |
2350 } | 2350 } |
2351 | 2351 |
2352 } // namespace WebKit | 2352 } // namespace WebKit |
OLD | NEW |