| OLD | NEW |
| 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 ASSERT(m_layoutState == 0); | 902 ASSERT(m_layoutState == 0); |
| 903 | 903 |
| 904 pushLayoutStateForCurrentFlowThread(root); | 904 pushLayoutStateForCurrentFlowThread(root); |
| 905 m_layoutState = new LayoutState(root); | 905 m_layoutState = new LayoutState(root); |
| 906 } | 906 } |
| 907 | 907 |
| 908 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons
t | 908 bool RenderView::shouldDisableLayoutStateForSubtree(RenderObject* renderer) cons
t |
| 909 { | 909 { |
| 910 RenderObject* o = renderer; | 910 RenderObject* o = renderer; |
| 911 while (o) { | 911 while (o) { |
| 912 if (o->hasColumns() || o->hasTransform() || o->hasReflection()) | 912 if (o->shouldDisableLayoutState()) |
| 913 return true; | 913 return true; |
| 914 o = o->container(); | 914 o = o->container(); |
| 915 } | 915 } |
| 916 return false; | 916 return false; |
| 917 } | 917 } |
| 918 | 918 |
| 919 void RenderView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p
oint) | 919 void RenderView::updateHitTestResult(HitTestResult& result, const LayoutPoint& p
oint) |
| 920 { | 920 { |
| 921 if (result.innerNode()) | 921 if (result.innerNode()) |
| 922 return; | 922 return; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 return viewWidth(IncludeScrollbars) / scale; | 1007 return viewWidth(IncludeScrollbars) / scale; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 double RenderView::layoutViewportHeight() const | 1010 double RenderView::layoutViewportHeight() const |
| 1011 { | 1011 { |
| 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 1012 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 1013 return viewHeight(IncludeScrollbars) / scale; | 1013 return viewHeight(IncludeScrollbars) / scale; |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 } // namespace WebCore | 1016 } // namespace WebCore |
| OLD | NEW |