Skip to content

Commit

Permalink
Merge pull request flutter#1213 from abarth/fix_text_rendering
Browse files Browse the repository at this point in the history
Fix text rendering
  • Loading branch information
abarth committed Sep 17, 2015
2 parents 7cd299c + dcaef43 commit 7cf7982
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sky/engine/core/painting/LayoutRoot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "sky/engine/core/frame/LocalFrame.h"
#include "sky/engine/core/frame/Settings.h"
#include "sky/engine/core/painting/Canvas.h"
#include "sky/engine/core/rendering/RenderView.h"
#include "sky/engine/platform/geometry/IntRect.h"
#include "third_party/skia/include/core/SkCanvas.h"

Expand Down Expand Up @@ -65,10 +66,7 @@ void LayoutRoot::layout()

LayoutUnit maxWidth = std::max(m_minWidth, m_maxWidth);
LayoutUnit maxHeight = std::max(m_minHeight, m_maxHeight);
IntSize maxSize(maxWidth, maxHeight);

m_frame->view()->setFrameRect(IntRect(IntPoint(), maxSize));
m_frame->view()->setLayoutSize(maxSize);
m_frame->view()->renderView()->setFrameViewSize(IntSize(maxWidth, maxHeight));

m_document->updateLayout();

Expand Down

0 comments on commit 7cf7982

Please sign in to comment.