| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual LayoutUnit marginRight() const override final; | 51 virtual LayoutUnit marginRight() const override final; |
| 52 virtual LayoutUnit marginTop() const override final; | 52 virtual LayoutUnit marginTop() const override final; |
| 53 virtual LayoutUnit marginBottom() const override final; | 53 virtual LayoutUnit marginBottom() const override final; |
| 54 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = 0) const ove
rride final; | 54 virtual LayoutUnit marginBefore(const RenderStyle* otherStyle = 0) const ove
rride final; |
| 55 virtual LayoutUnit marginAfter(const RenderStyle* otherStyle = 0) const over
ride final; | 55 virtual LayoutUnit marginAfter(const RenderStyle* otherStyle = 0) const over
ride final; |
| 56 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = 0) const over
ride final; | 56 virtual LayoutUnit marginStart(const RenderStyle* otherStyle = 0) const over
ride final; |
| 57 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = 0) const overri
de final; | 57 virtual LayoutUnit marginEnd(const RenderStyle* otherStyle = 0) const overri
de final; |
| 58 | 58 |
| 59 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 59 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
| 60 | 60 |
| 61 virtual LayoutSize offsetFromContainer(const RenderObject*, const LayoutPoin
t&, bool* offsetDependsOnPoint = 0) const override final; | |
| 62 | |
| 63 IntRect linesBoundingBox() const; | 61 IntRect linesBoundingBox() const; |
| 64 LayoutRect linesVisualOverflowBoundingBox() const; | 62 LayoutRect linesVisualOverflowBoundingBox() const; |
| 65 | 63 |
| 66 InlineFlowBox* createAndAppendInlineFlowBox(); | 64 InlineFlowBox* createAndAppendInlineFlowBox(); |
| 67 | 65 |
| 68 void dirtyLineBoxes(bool fullLayout); | 66 void dirtyLineBoxes(bool fullLayout); |
| 69 void deleteLineBoxTree(); | 67 void deleteLineBoxTree(); |
| 70 | 68 |
| 71 RenderLineBoxList* lineBoxes() { return &m_lineBoxes; } | 69 RenderLineBoxList* lineBoxes() { return &m_lineBoxes; } |
| 72 const RenderLineBoxList* lineBoxes() const { return &m_lineBoxes; } | 70 const RenderLineBoxList* lineBoxes() const { return &m_lineBoxes; } |
| 73 | 71 |
| 74 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); } | 72 InlineFlowBox* firstLineBox() const { return m_lineBoxes.firstLineBox(); } |
| 75 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); } | 73 InlineFlowBox* lastLineBox() const { return m_lineBoxes.lastLineBox(); } |
| 76 InlineBox* firstLineBoxIncludingCulling() const { return alwaysCreateLineBox
es() ? firstLineBox() : culledInlineFirstLineBox(); } | 74 InlineBox* firstLineBoxIncludingCulling() const { return alwaysCreateLineBox
es() ? firstLineBox() : culledInlineFirstLineBox(); } |
| 77 InlineBox* lastLineBoxIncludingCulling() const { return alwaysCreateLineBoxe
s() ? lastLineBox() : culledInlineLastLineBox(); } | 75 InlineBox* lastLineBoxIncludingCulling() const { return alwaysCreateLineBoxe
s() ? lastLineBox() : culledInlineLastLineBox(); } |
| 78 | 76 |
| 79 LayoutSize offsetForInFlowPositionedInline(const RenderBox& child) const; | |
| 80 | |
| 81 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) const override final
; | 77 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) const override final
; |
| 82 | 78 |
| 83 bool alwaysCreateLineBoxes() const { return alwaysCreateLineBoxesForRenderIn
line(); } | 79 bool alwaysCreateLineBoxes() const { return alwaysCreateLineBoxesForRenderIn
line(); } |
| 84 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) { setAlways
CreateLineBoxesForRenderInline(alwaysCreateLineBoxes); } | 80 void setAlwaysCreateLineBoxes(bool alwaysCreateLineBoxes = true) { setAlways
CreateLineBoxesForRenderInline(alwaysCreateLineBoxes); } |
| 85 void updateAlwaysCreateLineBoxes(bool fullLayout); | 81 void updateAlwaysCreateLineBoxes(bool fullLayout); |
| 86 | 82 |
| 87 virtual LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToE
ndOfLine) override final; | 83 virtual LayoutRect localCaretRect(InlineBox*, int, LayoutUnit* extraWidthToE
ndOfLine) override final; |
| 88 | 84 |
| 89 bool hitTestCulledInline(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset); | 85 bool hitTestCulledInline(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset); |
| 90 | 86 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 111 void generateLineBoxRects(GeneratorContext& yield) const; | 107 void generateLineBoxRects(GeneratorContext& yield) const; |
| 112 template<typename GeneratorContext> | 108 template<typename GeneratorContext> |
| 113 void generateCulledLineBoxRects(GeneratorContext& yield, const RenderInline*
container) const; | 109 void generateCulledLineBoxRects(GeneratorContext& yield, const RenderInline*
container) const; |
| 114 | 110 |
| 115 virtual void layout() override final { ASSERT_NOT_REACHED(); } // Do nothing
for layout() | 111 virtual void layout() override final { ASSERT_NOT_REACHED(); } // Do nothing
for layout() |
| 116 | 112 |
| 117 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) override final; | 113 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) override final; |
| 118 | 114 |
| 119 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset) override f
inal; | 115 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset) override f
inal; |
| 120 | 116 |
| 121 virtual LayerType layerTypeRequired() const override { return isRelPositione
d() || createsGroup() || hasClipPath() ? NormalLayer : NoLayer; } | 117 virtual LayerType layerTypeRequired() const override { return createsGroup()
|| hasClipPath() ? NormalLayer : NoLayer; } |
| 122 | 118 |
| 123 virtual LayoutUnit offsetLeft() const override final; | 119 virtual LayoutUnit offsetLeft() const override final; |
| 124 virtual LayoutUnit offsetTop() const override final; | 120 virtual LayoutUnit offsetTop() const override final; |
| 125 virtual LayoutUnit offsetWidth() const override final { return linesBounding
Box().width(); } | 121 virtual LayoutUnit offsetWidth() const override final { return linesBounding
Box().width(); } |
| 126 virtual LayoutUnit offsetHeight() const override final { return linesBoundin
gBox().height(); } | 122 virtual LayoutUnit offsetHeight() const override final { return linesBoundin
gBox().height(); } |
| 127 | 123 |
| 128 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const
override; | 124 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const
override; |
| 129 | 125 |
| 130 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f
inal; | 126 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override f
inal; |
| 131 | 127 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 148 | 144 |
| 149 RenderObjectChildList m_children; | 145 RenderObjectChildList m_children; |
| 150 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i
nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. | 146 RenderLineBoxList m_lineBoxes; // All of the line boxes created for this i
nline flow. For example, <i>Hello<br>world.</i> will have two <i> line boxes. |
| 151 }; | 147 }; |
| 152 | 148 |
| 153 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); | 149 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderInline, isRenderInline()); |
| 154 | 150 |
| 155 } // namespace blink | 151 } // namespace blink |
| 156 | 152 |
| 157 #endif // SKY_ENGINE_CORE_RENDERING_RENDERINLINE_H_ | 153 #endif // SKY_ENGINE_CORE_RENDERING_RENDERINLINE_H_ |
| OLD | NEW |