| 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 if (containsFloats()) { | 994 if (containsFloats()) { |
| 995 // Clear references to originating lines, since the lines are being dele
ted | 995 // Clear references to originating lines, since the lines are being dele
ted |
| 996 const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); | 996 const FloatingObjectSet& floatingObjectSet = m_floatingObjects->set(); |
| 997 FloatingObjectSetIterator end = floatingObjectSet.end(); | 997 FloatingObjectSetIterator end = floatingObjectSet.end(); |
| 998 for (FloatingObjectSetIterator it = floatingObjectSet.begin(); it != end
; ++it) { | 998 for (FloatingObjectSetIterator it = floatingObjectSet.begin(); it != end
; ++it) { |
| 999 ASSERT(!((*it)->m_originatingLine) || (*it)->m_originatingLine->rend
erer() == this); | 999 ASSERT(!((*it)->m_originatingLine) || (*it)->m_originatingLine->rend
erer() == this); |
| 1000 (*it)->m_originatingLine = 0; | 1000 (*it)->m_originatingLine = 0; |
| 1001 } | 1001 } |
| 1002 } | 1002 } |
| 1003 m_lineBoxes.deleteLineBoxTree(renderArena()); | 1003 m_lineBoxes.deleteLineBoxTree(renderArena()); |
| 1004 | 1004 if (UNLIKELY(AXObjectCache::accessibilityEnabled())) |
| 1005 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 1005 document()->axObjectCache()->recomputeIsIgnored(this); |
| 1006 cache->recomputeIsIgnored(this); | |
| 1007 } | 1006 } |
| 1008 | 1007 |
| 1009 RootInlineBox* RenderBlock::createRootInlineBox() | 1008 RootInlineBox* RenderBlock::createRootInlineBox() |
| 1010 { | 1009 { |
| 1011 return new (renderArena()) RootInlineBox(this); | 1010 return new (renderArena()) RootInlineBox(this); |
| 1012 } | 1011 } |
| 1013 | 1012 |
| 1014 RootInlineBox* RenderBlock::createAndAppendRootInlineBox() | 1013 RootInlineBox* RenderBlock::createAndAppendRootInlineBox() |
| 1015 { | 1014 { |
| 1016 RootInlineBox* rootBox = createRootInlineBox(); | 1015 RootInlineBox* rootBox = createRootInlineBox(); |
| 1017 m_lineBoxes.appendLineBox(rootBox); | 1016 m_lineBoxes.appendLineBox(rootBox); |
| 1018 | 1017 |
| 1019 if (UNLIKELY(AXObjectCache::accessibilityEnabled()) && m_lineBoxes.firstLine
Box() == rootBox) { | 1018 if (UNLIKELY(AXObjectCache::accessibilityEnabled()) && m_lineBoxes.firstLine
Box() == rootBox) |
| 1020 if (AXObjectCache* cache = document()->existingAXObjectCache()) | 1019 document()->axObjectCache()->recomputeIsIgnored(this); |
| 1021 cache->recomputeIsIgnored(this); | |
| 1022 } | |
| 1023 | 1020 |
| 1024 return rootBox; | 1021 return rootBox; |
| 1025 } | 1022 } |
| 1026 | 1023 |
| 1027 void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint) | 1024 void RenderBlock::makeChildrenNonInline(RenderObject *insertionPoint) |
| 1028 { | 1025 { |
| 1029 // makeChildrenNonInline takes a block whose children are *all* inline and i
t | 1026 // makeChildrenNonInline takes a block whose children are *all* inline and i
t |
| 1030 // makes sure that inline children are coalesced under anonymous | 1027 // makes sure that inline children are coalesced under anonymous |
| 1031 // blocks. If |insertionPoint| is defined, then it represents the insertion
point for | 1028 // blocks. If |insertionPoint| is defined, then it represents the insertion
point for |
| 1032 // the new block child that is causing us to have to wrap all the inlines.
This | 1029 // the new block child that is causing us to have to wrap all the inlines.
This |
| (...skipping 7082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8115 { | 8112 { |
| 8116 memoryInstrumentation->addRootObject(gColumnInfoMap, WebCoreMemoryTypes::Ren
deringStructures); | 8113 memoryInstrumentation->addRootObject(gColumnInfoMap, WebCoreMemoryTypes::Ren
deringStructures); |
| 8117 memoryInstrumentation->addRootObject(gPositionedDescendantsMap, WebCoreMemor
yTypes::RenderingStructures); | 8114 memoryInstrumentation->addRootObject(gPositionedDescendantsMap, WebCoreMemor
yTypes::RenderingStructures); |
| 8118 memoryInstrumentation->addRootObject(gPercentHeightDescendantsMap, WebCoreMe
moryTypes::RenderingStructures); | 8115 memoryInstrumentation->addRootObject(gPercentHeightDescendantsMap, WebCoreMe
moryTypes::RenderingStructures); |
| 8119 memoryInstrumentation->addRootObject(gPositionedContainerMap, WebCoreMemoryT
ypes::RenderingStructures); | 8116 memoryInstrumentation->addRootObject(gPositionedContainerMap, WebCoreMemoryT
ypes::RenderingStructures); |
| 8120 memoryInstrumentation->addRootObject(gPercentHeightContainerMap, WebCoreMemo
ryTypes::RenderingStructures); | 8117 memoryInstrumentation->addRootObject(gPercentHeightContainerMap, WebCoreMemo
ryTypes::RenderingStructures); |
| 8121 memoryInstrumentation->addRootObject(gDelayedUpdateScrollInfoSet, WebCoreMem
oryTypes::RenderingStructures); | 8118 memoryInstrumentation->addRootObject(gDelayedUpdateScrollInfoSet, WebCoreMem
oryTypes::RenderingStructures); |
| 8122 } | 8119 } |
| 8123 | 8120 |
| 8124 } // namespace WebCore | 8121 } // namespace WebCore |
| OLD | NEW |