| 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, 2006, 2007, 2009 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 virtual LayoutUnit containingBlockLogicalWidthForContent() const; | 176 virtual LayoutUnit containingBlockLogicalWidthForContent() const; |
| 177 | 177 |
| 178 virtual void childBecameNonInline(LayoutObject* /*child*/) { } | 178 virtual void childBecameNonInline(LayoutObject* /*child*/) { } |
| 179 | 179 |
| 180 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = nullptr) const; | 180 virtual bool boxShadowShouldBeAppliedToBackground(BackgroundBleedAvoidance,
InlineFlowBox* = nullptr) const; |
| 181 | 181 |
| 182 // Overridden by subclasses to determine line height and baseline position. | 182 // Overridden by subclasses to determine line height and baseline position. |
| 183 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; | 183 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; |
| 184 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; | 184 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; |
| 185 | 185 |
| 186 virtual LayoutSize offsetFromContainer(const LayoutObject*) const override; |
| 186 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 187 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
| 187 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec
t* ancestorToStopAt, LayoutGeometryMap&) const override; | 188 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec
t* ancestorToStopAt, LayoutGeometryMap&) const override; |
| 188 | 189 |
| 189 virtual void setSelectionState(SelectionState) override; | 190 virtual void setSelectionState(SelectionState) override; |
| 190 | 191 |
| 191 void contentChanged(ContentChangeType); | 192 void contentChanged(ContentChangeType); |
| 192 bool hasAcceleratedCompositing() const; | 193 bool hasAcceleratedCompositing() const; |
| 193 | 194 |
| 194 virtual void computeLayerHitTestRects(LayerHitTestRects&) const override; | 195 virtual void computeLayerHitTestRects(LayerHitTestRects&) const override; |
| 195 | 196 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 virtual bool isBoxModelObject() const override final { return true; } | 267 virtual bool isBoxModelObject() const override final { return true; } |
| 267 | 268 |
| 268 OwnPtr<DeprecatedPaintLayer> m_layer; | 269 OwnPtr<DeprecatedPaintLayer> m_layer; |
| 269 }; | 270 }; |
| 270 | 271 |
| 271 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); | 272 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBoxModelObject, isBoxModelObject()); |
| 272 | 273 |
| 273 } // namespace blink | 274 } // namespace blink |
| 274 | 275 |
| 275 #endif // LayoutBoxModelObject_h | 276 #endif // LayoutBoxModelObject_h |
| OLD | NEW |