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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 151363003: Chrome_Win: Renderer Crash - WebCore::FrameView::setFrameRect (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 4bf08a4e79bb04b5f000e42c22ce68c24262bf4d..4820c319e34448e46e21b79ef703341fff09be8b 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -379,13 +379,15 @@ void FrameView::setFrameRect(const IntRect& newRect)
// Autosized font sizes depend on the width of the viewing area.
if (newRect.width() != oldRect.width()) {
- Page* page = m_frame->page();
- bool textAutosizingEnabled = InspectorInstrumentation::overrideTextAutosizing(page, page->settings().textAutosizingEnabled());
- if (isMainFrame() && textAutosizingEnabled) {
- TextAutosizer* textAutosizer = m_frame->document()->textAutosizer();
- if (textAutosizer) {
- for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext())
- textAutosizer->recalculateMultipliers();
+ if (isMainFrame()) {
+ Page* page = m_frame->page();
+ bool textAutosizingEnabled = InspectorInstrumentation::overrideTextAutosizing(page, page->settings().textAutosizingEnabled());
+ if (textAutosizingEnabled) {
+ TextAutosizer* textAutosizer = m_frame->document()->textAutosizer();
+ if (textAutosizer) {
+ for (Frame* frame = page->mainFrame(); frame; frame = frame->tree().traverseNext())
+ textAutosizer->recalculateMultipliers();
+ }
}
}
}
« 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