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) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 if (beforeChild && beforeChild->parent() != this) { | 374 if (beforeChild && beforeChild->parent() != this) { |
375 LayoutObject* beforeChildContainer = beforeChild->parent(); | 375 LayoutObject* beforeChildContainer = beforeChild->parent(); |
376 while (beforeChildContainer->parent() != this) | 376 while (beforeChildContainer->parent() != this) |
377 beforeChildContainer = beforeChildContainer->parent(); | 377 beforeChildContainer = beforeChildContainer->parent(); |
378 ASSERT(beforeChildContainer); | 378 ASSERT(beforeChildContainer); |
379 | 379 |
380 if (beforeChildContainer->isAnonymous()) { | 380 if (beforeChildContainer->isAnonymous()) { |
381 // If the requested beforeChild is not one of our children, then thi
s is because | 381 // If the requested beforeChild is not one of our children, then thi
s is because |
382 // there is an anonymous container within this object that contains
the beforeChild. | 382 // there is an anonymous container within this object that contains
the beforeChild. |
383 LayoutObject* beforeChildAnonymousContainer = beforeChildContainer; | 383 LayoutObject* beforeChildAnonymousContainer = beforeChildContainer; |
384 if (beforeChildAnonymousContainer->isAnonymousBlock() | 384 if (beforeChildAnonymousContainer->isAnonymousBlock()) { |
385 // Full screen layoutObjects and full screen placeholders act as
anonymous blocks, not tables: | |
386 || beforeChildAnonymousContainer->isLayoutFullScreen() | |
387 || beforeChildAnonymousContainer->isLayoutFullScreenPlaceholder(
) | |
388 ) { | |
389 // Insert the child into the anonymous block box instead of here
. | 385 // Insert the child into the anonymous block box instead of here
. |
390 if (newChild->isInline() || newChild->isFloatingOrOutOfFlowPosit
ioned() || beforeChild->parent()->slowFirstChild() != beforeChild) | 386 if (newChild->isInline() || newChild->isFloatingOrOutOfFlowPosit
ioned() || beforeChild->parent()->slowFirstChild() != beforeChild) |
391 beforeChild->parent()->addChild(newChild, beforeChild); | 387 beforeChild->parent()->addChild(newChild, beforeChild); |
392 else | 388 else |
393 addChild(newChild, beforeChild->parent()); | 389 addChild(newChild, beforeChild->parent()); |
394 return; | 390 return; |
395 } | 391 } |
396 | 392 |
397 ASSERT(beforeChildAnonymousContainer->isTable()); | 393 ASSERT(beforeChildAnonymousContainer->isTable()); |
398 if (newChild->isTablePart()) { | 394 if (newChild->isTablePart()) { |
(...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const | 2855 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const |
2860 { | 2856 { |
2861 showLayoutObject(); | 2857 showLayoutObject(); |
2862 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 2858 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
2863 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 2859 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
2864 } | 2860 } |
2865 | 2861 |
2866 #endif | 2862 #endif |
2867 | 2863 |
2868 } // namespace blink | 2864 } // namespace blink |
OLD | NEW |