| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1835 } | 1835 } |
| 1836 | 1836 |
| 1837 void RenderObject::imageChanged(WrappedImagePtr, const IntRect*) | 1837 void RenderObject::imageChanged(WrappedImagePtr, const IntRect*) |
| 1838 { | 1838 { |
| 1839 if (parent()) | 1839 if (parent()) |
| 1840 document().scheduleVisualUpdate(); | 1840 document().scheduleVisualUpdate(); |
| 1841 } | 1841 } |
| 1842 | 1842 |
| 1843 Element* RenderObject::offsetParent() const | 1843 Element* RenderObject::offsetParent() const |
| 1844 { | 1844 { |
| 1845 if (isDocumentElement()) | |
| 1846 return 0; | |
| 1847 | |
| 1848 Node* node = 0; | 1845 Node* node = 0; |
| 1849 for (RenderObject* ancestor = parent(); ancestor; ancestor = ancestor->paren
t()) { | 1846 for (RenderObject* ancestor = parent(); ancestor; ancestor = ancestor->paren
t()) { |
| 1850 // Spec: http://www.w3.org/TR/cssom-view/#offset-attributes | 1847 // Spec: http://www.w3.org/TR/cssom-view/#offset-attributes |
| 1851 node = ancestor->node(); | 1848 node = ancestor->node(); |
| 1852 if (!node) | 1849 if (!node) |
| 1853 continue; | 1850 continue; |
| 1854 | 1851 |
| 1855 if (ancestor->isPositioned()) | 1852 if (ancestor->isPositioned()) |
| 1856 break; | 1853 break; |
| 1857 } | 1854 } |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1975 { | 1972 { |
| 1976 if (object1) { | 1973 if (object1) { |
| 1977 const blink::RenderObject* root = object1; | 1974 const blink::RenderObject* root = object1; |
| 1978 while (root->parent()) | 1975 while (root->parent()) |
| 1979 root = root->parent(); | 1976 root = root->parent(); |
| 1980 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); | 1977 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); |
| 1981 } | 1978 } |
| 1982 } | 1979 } |
| 1983 | 1980 |
| 1984 #endif | 1981 #endif |
| OLD | NEW |