| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; | 47 virtual void addChild(LayoutObject* newChild, LayoutObject* beforeChild = 0)
override; |
| 48 | 48 |
| 49 Element* node() const { return toElement(LayoutBoxModelObject::node()); } | 49 Element* node() const { return toElement(LayoutBoxModelObject::node()); } |
| 50 | 50 |
| 51 virtual LayoutRectOutsets marginBoxOutsets() const override final; | 51 virtual LayoutRectOutsets marginBoxOutsets() const override final; |
| 52 virtual LayoutUnit marginLeft() const override final; | 52 virtual LayoutUnit marginLeft() const override final; |
| 53 virtual LayoutUnit marginRight() const override final; | 53 virtual LayoutUnit marginRight() const override final; |
| 54 virtual LayoutUnit marginTop() const override final; | 54 virtual LayoutUnit marginTop() const override final; |
| 55 virtual LayoutUnit marginBottom() const override final; | 55 virtual LayoutUnit marginBottom() const override final; |
| 56 virtual LayoutUnit marginBefore(const LayoutStyle* otherStyle = 0) const ove
rride final; | 56 virtual LayoutUnit marginBefore(const ComputedStyle* otherStyle = 0) const o
verride final; |
| 57 virtual LayoutUnit marginAfter(const LayoutStyle* otherStyle = 0) const over
ride final; | 57 virtual LayoutUnit marginAfter(const ComputedStyle* otherStyle = 0) const ov
erride final; |
| 58 virtual LayoutUnit marginStart(const LayoutStyle* otherStyle = 0) const over
ride final; | 58 virtual LayoutUnit marginStart(const ComputedStyle* otherStyle = 0) const ov
erride final; |
| 59 virtual LayoutUnit marginEnd(const LayoutStyle* otherStyle = 0) const overri
de final; | 59 virtual LayoutUnit marginEnd(const ComputedStyle* otherStyle = 0) const over
ride final; |
| 60 | 60 |
| 61 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override final; | 61 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override final; |
| 62 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid
e; | 62 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid
e; |
| 63 | 63 |
| 64 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = 0) const override final; | 64 virtual LayoutSize offsetFromContainer(const LayoutObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = 0) const override final; |
| 65 | 65 |
| 66 IntRect linesBoundingBox() const; | 66 IntRect linesBoundingBox() const; |
| 67 LayoutRect linesVisualOverflowBoundingBox() const; | 67 LayoutRect linesVisualOverflowBoundingBox() const; |
| 68 | 68 |
| 69 InlineFlowBox* createAndAppendInlineFlowBox(); | 69 InlineFlowBox* createAndAppendInlineFlowBox(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 96 | 96 |
| 97 virtual LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToE
ndOfLine) override final; | 97 virtual LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToE
ndOfLine) override final; |
| 98 | 98 |
| 99 bool hitTestCulledInline(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset); | 99 bool hitTestCulledInline(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset); |
| 100 | 100 |
| 101 virtual const char* name() const override; | 101 virtual const char* name() const override; |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 virtual void willBeDestroyed() override; | 104 virtual void willBeDestroyed() override; |
| 105 | 105 |
| 106 virtual void styleDidChange(StyleDifference, const LayoutStyle* oldStyle) ov
erride; | 106 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle)
override; |
| 107 | 107 |
| 108 virtual void computeSelfHitTestRects(Vector<LayoutRect>& rects, const Layout
Point& layerOffset) const override; | 108 virtual void computeSelfHitTestRects(Vector<LayoutRect>& rects, const Layout
Point& layerOffset) const override; |
| 109 | 109 |
| 110 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer) const override; | 110 virtual void invalidateDisplayItemClients(const LayoutBoxModelObject& paintI
nvalidationContainer) const override; |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 virtual LayoutObjectChildList* virtualChildren() override final { return chi
ldren(); } | 113 virtual LayoutObjectChildList* virtualChildren() override final { return chi
ldren(); } |
| 114 virtual const LayoutObjectChildList* virtualChildren() const override final
{ return children(); } | 114 virtual const LayoutObjectChildList* virtualChildren() const override final
{ return children(); } |
| 115 const LayoutObjectChildList* children() const { return &m_children; } | 115 const LayoutObjectChildList* children() const { return &m_children; } |
| 116 LayoutObjectChildList* children() { return &m_children; } | 116 LayoutObjectChildList* children() { return &m_children; } |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 LayoutObjectChildList m_children; | 192 LayoutObjectChildList m_children; |
| 193 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl
ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. | 193 LineBoxList m_lineBoxes; // All of the line boxes created for this inline fl
ow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); | 196 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutInline, isLayoutInline()); |
| 197 | 197 |
| 198 } // namespace blink | 198 } // namespace blink |
| 199 | 199 |
| 200 #endif // LayoutInline_h | 200 #endif // LayoutInline_h |
| OLD | NEW |