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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 if (beforeChild && beforeChild->parent() != this) { | 415 if (beforeChild && beforeChild->parent() != this) { |
416 LayoutObject* beforeChildContainer = beforeChild->parent(); | 416 LayoutObject* beforeChildContainer = beforeChild->parent(); |
417 while (beforeChildContainer->parent() != this) | 417 while (beforeChildContainer->parent() != this) |
418 beforeChildContainer = beforeChildContainer->parent(); | 418 beforeChildContainer = beforeChildContainer->parent(); |
419 ASSERT(beforeChildContainer); | 419 ASSERT(beforeChildContainer); |
420 | 420 |
421 if (beforeChildContainer->isAnonymous()) { | 421 if (beforeChildContainer->isAnonymous()) { |
422 // If the requested beforeChild is not one of our children, then thi
s is because | 422 // If the requested beforeChild is not one of our children, then thi
s is because |
423 // there is an anonymous container within this object that contains
the beforeChild. | 423 // there is an anonymous container within this object that contains
the beforeChild. |
424 LayoutObject* beforeChildAnonymousContainer = beforeChildContainer; | 424 LayoutObject* beforeChildAnonymousContainer = beforeChildContainer; |
425 if (beforeChildAnonymousContainer->isAnonymousBlock() | 425 if (beforeChildAnonymousContainer->isAnonymousBlock()) { |
426 // Full screen layoutObjects and full screen placeholders act as
anonymous blocks, not tables: | |
427 || beforeChildAnonymousContainer->isLayoutFullScreen() | |
428 || beforeChildAnonymousContainer->isLayoutFullScreenPlaceholder(
) | |
429 ) { | |
430 // Insert the child into the anonymous block box instead of here
. | 426 // Insert the child into the anonymous block box instead of here
. |
431 if (newChild->isInline() || newChild->isFloatingOrOutOfFlowPosit
ioned() || beforeChild->parent()->slowFirstChild() != beforeChild) | 427 if (newChild->isInline() || newChild->isFloatingOrOutOfFlowPosit
ioned() || beforeChild->parent()->slowFirstChild() != beforeChild) |
432 beforeChild->parent()->addChild(newChild, beforeChild); | 428 beforeChild->parent()->addChild(newChild, beforeChild); |
433 else | 429 else |
434 addChild(newChild, beforeChild->parent()); | 430 addChild(newChild, beforeChild->parent()); |
435 return; | 431 return; |
436 } | 432 } |
437 | 433 |
438 ASSERT(beforeChildAnonymousContainer->isTable()); | 434 ASSERT(beforeChildAnonymousContainer->isTable()); |
439 if (newChild->isTablePart()) { | 435 if (newChild->isTablePart()) { |
(...skipping 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2927 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const | 2923 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const |
2928 { | 2924 { |
2929 showLayoutObject(); | 2925 showLayoutObject(); |
2930 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 2926 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
2931 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 2927 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
2932 } | 2928 } |
2933 | 2929 |
2934 #endif | 2930 #endif |
2935 | 2931 |
2936 } // namespace blink | 2932 } // namespace blink |
OLD | NEW |