| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // Overridden by subclasses to determine line height and baseline position. | 155 // Overridden by subclasses to determine line height and baseline position. |
| 156 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; | 156 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const = 0; |
| 157 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; | 157 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; |
| 158 | 158 |
| 159 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 159 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
| 160 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; | 160 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; |
| 161 | 161 |
| 162 virtual void setSelectionState(SelectionState) override; | 162 virtual void setSelectionState(SelectionState) override; |
| 163 | 163 |
| 164 void contentChanged(ContentChangeType); | 164 void contentChanged(ContentChangeType, const IntRect&); |
| 165 bool hasAcceleratedCompositing() const; | 165 bool hasAcceleratedCompositing() const; |
| 166 | 166 |
| 167 virtual void computeLayerHitTestRects(LayerHitTestRects&) const override; | 167 virtual void computeLayerHitTestRects(LayerHitTestRects&) const override; |
| 168 | 168 |
| 169 protected: | 169 protected: |
| 170 virtual void willBeDestroyed() override; | 170 virtual void willBeDestroyed() override; |
| 171 | 171 |
| 172 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const
; | 172 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const
; |
| 173 | 173 |
| 174 bool calculateHasBoxDecorations() const; | 174 bool calculateHasBoxDecorations() const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 private: | 212 private: |
| 213 LayoutUnit computedCSSPadding(const Length&) const; | 213 LayoutUnit computedCSSPadding(const Length&) const; |
| 214 virtual bool isBoxModelObject() const override final { return true; } | 214 virtual bool isBoxModelObject() const override final { return true; } |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 217 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
| 218 | 218 |
| 219 } // namespace blink | 219 } // namespace blink |
| 220 | 220 |
| 221 #endif // RenderBoxModelObject_h | 221 #endif // RenderBoxModelObject_h |
| OLD | NEW |