| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 RenderLineBoxList m_lineBoxes; | 44 RenderLineBoxList m_lineBoxes; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 COMPILE_ASSERT(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), RenderInl
ine_should_stay_small); | 47 COMPILE_ASSERT(sizeof(RenderInline) == sizeof(SameSizeAsRenderInline), RenderInl
ine_should_stay_small); |
| 48 | 48 |
| 49 RenderInline::RenderInline(Element* element) | 49 RenderInline::RenderInline(Element* element) |
| 50 : RenderBoxModelObject(element) | 50 : RenderBoxModelObject(element) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 RenderInline* RenderInline::createAnonymous(Document* document) | |
| 55 { | |
| 56 RenderInline* renderer = new RenderInline(0); | |
| 57 renderer->setDocumentForAnonymous(document); | |
| 58 return renderer; | |
| 59 } | |
| 60 | |
| 61 void RenderInline::willBeDestroyed() | 54 void RenderInline::willBeDestroyed() |
| 62 { | 55 { |
| 63 // Make sure to destroy anonymous children first while they are still connec
ted to the rest of the tree, so that they will | 56 // Make sure to destroy anonymous children first while they are still connec
ted to the rest of the tree, so that they will |
| 64 // properly dirty line boxes that they are removed from. Effects that do :b
efore/:after only on hover could crash otherwise. | 57 // properly dirty line boxes that they are removed from. Effects that do :b
efore/:after only on hover could crash otherwise. |
| 65 children()->destroyLeftoverChildren(); | 58 children()->destroyLeftoverChildren(); |
| 66 | 59 |
| 67 if (!documentBeingDestroyed()) { | 60 if (!documentBeingDestroyed()) { |
| 68 if (firstLineBox()) { | 61 if (firstLineBox()) { |
| 69 // We can't wait for RenderBoxModelObject::destroy to clear the sele
ction, | 62 // We can't wait for RenderBoxModelObject::destroy to clear the sele
ction, |
| 70 // because by then we will have nuked the line boxes. | 63 // because by then we will have nuked the line boxes. |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 | 689 |
| 697 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint&
additionalOffset, const RenderBox* paintContainer) const | 690 void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint&
additionalOffset, const RenderBox* paintContainer) const |
| 698 { | 691 { |
| 699 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff
set); | 692 AbsoluteRectsIgnoringEmptyRectsGeneratorContext context(rects, additionalOff
set); |
| 700 generateLineBoxRects(context); | 693 generateLineBoxRects(context); |
| 701 | 694 |
| 702 addChildFocusRingRects(rects, additionalOffset, paintContainer); | 695 addChildFocusRingRects(rects, additionalOffset, paintContainer); |
| 703 } | 696 } |
| 704 | 697 |
| 705 } // namespace blink | 698 } // namespace blink |
| OLD | NEW |