| 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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 7 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // or if the <body>'s parent is not the document element's renderer (e.g. in
side SVG foreignObject). | 86 // or if the <body>'s parent is not the document element's renderer (e.g. in
side SVG foreignObject). |
| 87 RenderObject* documentElementRenderer = bodyElementRenderer->document().docu
mentElement()->renderer(); | 87 RenderObject* documentElementRenderer = bodyElementRenderer->document().docu
mentElement()->renderer(); |
| 88 return documentElementRenderer | 88 return documentElementRenderer |
| 89 && !documentElementRenderer->hasBackground() | 89 && !documentElementRenderer->hasBackground() |
| 90 && (documentElementRenderer == bodyElementRenderer->parent()); | 90 && (documentElementRenderer == bodyElementRenderer->parent()); |
| 91 } | 91 } |
| 92 | 92 |
| 93 RenderBox::RenderBox(ContainerNode* node) | 93 RenderBox::RenderBox(ContainerNode* node) |
| 94 : RenderBoxModelObject(node) | 94 : RenderBoxModelObject(node) |
| 95 , m_intrinsicContentLogicalHeight(-1) | 95 , m_intrinsicContentLogicalHeight(-1) |
| 96 , m_minPreferredLogicalWidth(-1) | 96 , m_minPreferredLogicalWidth(0) |
| 97 , m_maxPreferredLogicalWidth(-1) | 97 , m_maxPreferredLogicalWidth(0) |
| 98 { | 98 { |
| 99 setIsBox(); | 99 setIsBox(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void RenderBox::willBeDestroyed() | 102 void RenderBox::willBeDestroyed() |
| 103 { | 103 { |
| 104 clearOverrideSize(); | 104 clearOverrideSize(); |
| 105 clearContainingBlockOverrideSize(); | 105 clearContainingBlockOverrideSize(); |
| 106 | 106 |
| 107 RenderBlock::removePercentHeightDescendantIfNeeded(this); | 107 RenderBlock::removePercentHeightDescendantIfNeeded(this); |
| (...skipping 4535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4643 return 0; | 4643 return 0; |
| 4644 | 4644 |
| 4645 if (!layoutState && !flowThreadContainingBlock()) | 4645 if (!layoutState && !flowThreadContainingBlock()) |
| 4646 return 0; | 4646 return 0; |
| 4647 | 4647 |
| 4648 RenderBlock* containerBlock = containingBlock(); | 4648 RenderBlock* containerBlock = containingBlock(); |
| 4649 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); | 4649 return containerBlock->offsetFromLogicalTopOfFirstPage() + logicalTop(); |
| 4650 } | 4650 } |
| 4651 | 4651 |
| 4652 } // namespace WebCore | 4652 } // namespace WebCore |
| OLD | NEW |