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 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 bool RenderObject::isHTMLMarquee() const | 227 bool RenderObject::isHTMLMarquee() const |
228 { | 228 { |
229 return element() && element()->renderer() == this && element()->hasTagName(m
arqueeTag); | 229 return element() && element()->renderer() == this && element()->hasTagName(m
arqueeTag); |
230 } | 230 } |
231 | 231 |
232 void RenderObject::addChild(RenderObject*, RenderObject*) | 232 void RenderObject::addChild(RenderObject*, RenderObject*) |
233 { | 233 { |
234 ASSERT_NOT_REACHED(); | 234 ASSERT_NOT_REACHED(); |
235 } | 235 } |
236 | 236 |
237 RenderObject* RenderObject::removeChildNode(RenderObject*, bool) | |
238 { | |
239 ASSERT_NOT_REACHED(); | |
240 return 0; | |
241 } | |
242 | |
243 void RenderObject::removeChild(RenderObject*) | 237 void RenderObject::removeChild(RenderObject*) |
244 { | 238 { |
245 ASSERT_NOT_REACHED(); | 239 ASSERT_NOT_REACHED(); |
246 } | 240 } |
247 | 241 |
248 void RenderObject::moveChildNode(RenderObject*) | |
249 { | |
250 ASSERT_NOT_REACHED(); | |
251 } | |
252 | |
253 void RenderObject::appendChildNode(RenderObject*, bool) | |
254 { | |
255 ASSERT_NOT_REACHED(); | |
256 } | |
257 | |
258 void RenderObject::insertChildNode(RenderObject*, RenderObject*, bool) | |
259 { | |
260 ASSERT_NOT_REACHED(); | |
261 } | |
262 | |
263 RenderObject* RenderObject::nextInPreOrder() const | 242 RenderObject* RenderObject::nextInPreOrder() const |
264 { | 243 { |
265 if (RenderObject* o = firstChild()) | 244 if (RenderObject* o = firstChild()) |
266 return o; | 245 return o; |
267 | 246 |
268 return nextInPreOrderAfterChildren(); | 247 return nextInPreOrderAfterChildren(); |
269 } | 248 } |
270 | 249 |
271 RenderObject* RenderObject::nextInPreOrderAfterChildren() const | 250 RenderObject* RenderObject::nextInPreOrderAfterChildren() const |
272 { | 251 { |
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1873 } | 1852 } |
1874 | 1853 |
1875 void RenderObject::handleDynamicFloatPositionChange() | 1854 void RenderObject::handleDynamicFloatPositionChange() |
1876 { | 1855 { |
1877 // We have gone from not affecting the inline status of the parent flow to s
uddenly | 1856 // We have gone from not affecting the inline status of the parent flow to s
uddenly |
1878 // having an impact. See if there is a mismatch between the parent flow's | 1857 // having an impact. See if there is a mismatch between the parent flow's |
1879 // childrenInline() state and our state. | 1858 // childrenInline() state and our state. |
1880 setInline(style()->isDisplayInlineType()); | 1859 setInline(style()->isDisplayInlineType()); |
1881 if (isInline() != parent()->childrenInline()) { | 1860 if (isInline() != parent()->childrenInline()) { |
1882 if (!isInline()) | 1861 if (!isInline()) |
1883 static_cast<RenderBox*>(parent())->childBecameNonInline(this); | 1862 toRenderBox(parent())->childBecameNonInline(this); |
1884 else { | 1863 else { |
1885 // An anonymous block must be made to wrap this inline. | 1864 // An anonymous block must be made to wrap this inline. |
1886 RenderBlock* box = createAnonymousBlock(); | 1865 RenderBlock* block = createAnonymousBlock(); |
1887 parent()->insertChildNode(box, this); | 1866 RenderObjectChildList* childlist = parent()->virtualChildren(); |
1888 box->appendChildNode(parent()->removeChildNode(this)); | 1867 childlist->insertChildNode(parent(), block, this); |
| 1868 block->children()->appendChildNode(block, childlist->removeChildNode
(parent(), this)); |
1889 } | 1869 } |
1890 } | 1870 } |
1891 } | 1871 } |
1892 | 1872 |
1893 void RenderObject::setAnimatableStyle(PassRefPtr<RenderStyle> style) | 1873 void RenderObject::setAnimatableStyle(PassRefPtr<RenderStyle> style) |
1894 { | 1874 { |
1895 if (!isText() && style) | 1875 if (!isText() && style) |
1896 setStyle(animation()->updateAnimations(this, style.get())); | 1876 setStyle(animation()->updateAnimations(this, style.get())); |
1897 else | 1877 else |
1898 setStyle(style); | 1878 setStyle(style); |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2735 #ifndef NDEBUG | 2715 #ifndef NDEBUG |
2736 | 2716 |
2737 void showTree(const WebCore::RenderObject* ro) | 2717 void showTree(const WebCore::RenderObject* ro) |
2738 { | 2718 { |
2739 if (ro) | 2719 if (ro) |
2740 ro->showTreeForThis(); | 2720 ro->showTreeForThis(); |
2741 } | 2721 } |
2742 | 2722 |
2743 #endif | 2723 #endif |
2744 | 2724 |
OLD | NEW |