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

Side by Side Diff: sky/engine/core/rendering/RenderView.cpp

Issue 689733003: Remove most of FloatingObject. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 { 762 {
763 m_layoutState = &layoutState; 763 m_layoutState = &layoutState;
764 } 764 }
765 765
766 void RenderView::popLayoutState() 766 void RenderView::popLayoutState()
767 { 767 {
768 ASSERT(m_layoutState); 768 ASSERT(m_layoutState);
769 m_layoutState = m_layoutState->next(); 769 m_layoutState = m_layoutState->next();
770 } 770 }
771 771
772 IntervalArena* RenderView::intervalArena()
773 {
774 if (!m_intervalArena)
775 m_intervalArena = IntervalArena::create();
776 return m_intervalArena.get();
777 }
778
779 bool RenderView::backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const 772 bool RenderView::backgroundIsKnownToBeOpaqueInRect(const LayoutRect&) const
780 { 773 {
781 return m_frameView->hasOpaqueBackground(); 774 return m_frameView->hasOpaqueBackground();
782 } 775 }
783 776
784 double RenderView::layoutViewportWidth() const 777 double RenderView::layoutViewportWidth() const
785 { 778 {
786 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; 779 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
787 return viewWidth(IncludeScrollbars) / scale; 780 return viewWidth(IncludeScrollbars) / scale;
788 } 781 }
789 782
790 double RenderView::layoutViewportHeight() const 783 double RenderView::layoutViewportHeight() const
791 { 784 {
792 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; 785 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1;
793 return viewHeight(IncludeScrollbars) / scale; 786 return viewHeight(IncludeScrollbars) / scale;
794 } 787 }
795 788
796 } // namespace blink 789 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderView.h ('k') | sky/engine/core/rendering/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698