| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 { | 814 { |
| 815 if (LayoutObject* backgroundRenderer = this->backgroundRenderer()) | 815 if (LayoutObject* backgroundRenderer = this->backgroundRenderer()) |
| 816 return backgroundRenderer->hasEntirelyFixedBackground(); | 816 return backgroundRenderer->hasEntirelyFixedBackground(); |
| 817 return false; | 817 return false; |
| 818 } | 818 } |
| 819 | 819 |
| 820 LayoutObject* LayoutView::backgroundRenderer() const | 820 LayoutObject* LayoutView::backgroundRenderer() const |
| 821 { | 821 { |
| 822 if (Element* documentElement = document().documentElement()) { | 822 if (Element* documentElement = document().documentElement()) { |
| 823 if (LayoutObject* rootObject = documentElement->layoutObject()) | 823 if (LayoutObject* rootObject = documentElement->layoutObject()) |
| 824 return rootObject->rendererForRootBackground(); | 824 return rootObject->layoutObjectForRootBackground(); |
| 825 } | 825 } |
| 826 return 0; | 826 return 0; |
| 827 } | 827 } |
| 828 | 828 |
| 829 LayoutRect LayoutView::backgroundRect(LayoutBox* backgroundRenderer) const | 829 LayoutRect LayoutView::backgroundRect(LayoutBox* backgroundRenderer) const |
| 830 { | 830 { |
| 831 if (!hasColumns()) | 831 if (!hasColumns()) |
| 832 return LayoutRect(unscaledDocumentRect()); | 832 return LayoutRect(unscaledDocumentRect()); |
| 833 | 833 |
| 834 ColumnInfo* columnInfo = this->columnInfo(); | 834 ColumnInfo* columnInfo = this->columnInfo(); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 return viewHeight(IncludeScrollbars) / scale; | 946 return viewHeight(IncludeScrollbars) / scale; |
| 947 } | 947 } |
| 948 | 948 |
| 949 void LayoutView::willBeDestroyed() | 949 void LayoutView::willBeDestroyed() |
| 950 { | 950 { |
| 951 LayoutBlockFlow::willBeDestroyed(); | 951 LayoutBlockFlow::willBeDestroyed(); |
| 952 m_compositor.clear(); | 952 m_compositor.clear(); |
| 953 } | 953 } |
| 954 | 954 |
| 955 } // namespace blink | 955 } // namespace blink |
| OLD | NEW |