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

Side by Side Diff: Source/WebKit/chromium/src/WebFrameImpl.cpp

Issue 9151009: Merge 104419 - [chromium] iframes in an autoresized window get sized incorrectly. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | no next file » | 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 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698