| 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 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 * | 20 * |
| 21 */ | 21 */ |
| 22 | 22 |
| 23 #include "sky/engine/config.h" | 23 #include "sky/engine/config.h" |
| 24 #include "sky/engine/core/rendering/RenderInline.h" | 24 #include "sky/engine/core/rendering/RenderInline.h" |
| 25 | 25 |
| 26 #include "sky/engine/core/dom/StyleEngine.h" | 26 #include "sky/engine/core/dom/StyleEngine.h" |
| 27 #include "sky/engine/core/page/Chrome.h" | 27 #include "sky/engine/core/page/Chrome.h" |
| 28 #include "sky/engine/core/page/Page.h" | 28 #include "sky/engine/core/page/Page.h" |
| 29 #include "sky/engine/core/rendering/GraphicsContextAnnotator.h" | |
| 30 #include "sky/engine/core/rendering/HitTestResult.h" | 29 #include "sky/engine/core/rendering/HitTestResult.h" |
| 31 #include "sky/engine/core/rendering/InlineTextBox.h" | 30 #include "sky/engine/core/rendering/InlineTextBox.h" |
| 32 #include "sky/engine/core/rendering/RenderBlock.h" | 31 #include "sky/engine/core/rendering/RenderBlock.h" |
| 33 #include "sky/engine/core/rendering/RenderGeometryMap.h" | 32 #include "sky/engine/core/rendering/RenderGeometryMap.h" |
| 34 #include "sky/engine/core/rendering/RenderLayer.h" | 33 #include "sky/engine/core/rendering/RenderLayer.h" |
| 35 #include "sky/engine/core/rendering/RenderView.h" | 34 #include "sky/engine/core/rendering/RenderView.h" |
| 36 #include "sky/engine/core/rendering/style/StyleInheritedData.h" | 35 #include "sky/engine/core/rendering/style/StyleInheritedData.h" |
| 37 #include "sky/engine/platform/geometry/FloatQuad.h" | 36 #include "sky/engine/platform/geometry/FloatQuad.h" |
| 38 #include "sky/engine/platform/geometry/TransformState.h" | 37 #include "sky/engine/platform/geometry/TransformState.h" |
| 39 #include "sky/engine/platform/graphics/GraphicsContext.h" | 38 #include "sky/engine/platform/graphics/GraphicsContext.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 166 } |
| 168 | 167 |
| 169 void RenderInline::addChild(RenderObject* newChild, RenderObject* beforeChild) | 168 void RenderInline::addChild(RenderObject* newChild, RenderObject* beforeChild) |
| 170 { | 169 { |
| 171 RenderBoxModelObject::addChild(newChild, beforeChild); | 170 RenderBoxModelObject::addChild(newChild, beforeChild); |
| 172 newChild->setNeedsLayoutAndPrefWidthsRecalc(); | 171 newChild->setNeedsLayoutAndPrefWidthsRecalc(); |
| 173 } | 172 } |
| 174 | 173 |
| 175 void RenderInline::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) | 174 void RenderInline::paint(PaintInfo& paintInfo, const LayoutPoint& paintOffset) |
| 176 { | 175 { |
| 177 ANNOTATE_GRAPHICS_CONTEXT(paintInfo, this); | |
| 178 m_lineBoxes.paint(this, paintInfo, paintOffset); | 176 m_lineBoxes.paint(this, paintInfo, paintOffset); |
| 179 } | 177 } |
| 180 | 178 |
| 181 template<typename GeneratorContext> | 179 template<typename GeneratorContext> |
| 182 void RenderInline::generateLineBoxRects(GeneratorContext& yield) const | 180 void RenderInline::generateLineBoxRects(GeneratorContext& yield) const |
| 183 { | 181 { |
| 184 if (!alwaysCreateLineBoxes()) | 182 if (!alwaysCreateLineBoxes()) |
| 185 generateCulledLineBoxRects(yield, this); | 183 generateCulledLineBoxRects(yield, this); |
| 186 else if (InlineFlowBox* curr = firstLineBox()) { | 184 else if (InlineFlowBox* curr = firstLineBox()) { |
| 187 for (; curr; curr = curr->nextLineBox()) | 185 for (; curr; curr = curr->nextLineBox()) |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 pixelSnappedBox.maxY(), | 953 pixelSnappedBox.maxY(), |
| 956 pixelSnappedBox.maxX() + outlineWidth, | 954 pixelSnappedBox.maxX() + outlineWidth, |
| 957 pixelSnappedBox.maxY() + outlineWidth, | 955 pixelSnappedBox.maxY() + outlineWidth, |
| 958 BSBottom, outlineColor, outlineStyle, | 956 BSBottom, outlineColor, outlineStyle, |
| 959 outlineWidth, | 957 outlineWidth, |
| 960 outlineWidth, | 958 outlineWidth, |
| 961 antialias); | 959 antialias); |
| 962 } | 960 } |
| 963 | 961 |
| 964 } // namespace blink | 962 } // namespace blink |
| OLD | NEW |