| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; | 162 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const = 0; |
| 163 | 163 |
| 164 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; | 164 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst override; |
| 165 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; | 165 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const override; |
| 166 | 166 |
| 167 virtual void setSelectionState(SelectionState) override; | 167 virtual void setSelectionState(SelectionState) override; |
| 168 | 168 |
| 169 bool hasAcceleratedCompositing() const; | 169 bool hasAcceleratedCompositing() const; |
| 170 | 170 |
| 171 protected: | 171 protected: |
| 172 virtual void willBeDestroyed() override; | |
| 173 | |
| 174 class BackgroundImageGeometry { | 172 class BackgroundImageGeometry { |
| 175 public: | 173 public: |
| 176 BackgroundImageGeometry() | 174 BackgroundImageGeometry() |
| 177 : m_hasNonLocalGeometry(false) | 175 : m_hasNonLocalGeometry(false) |
| 178 { } | 176 { } |
| 179 | 177 |
| 180 IntPoint destOrigin() const { return m_destOrigin; } | 178 IntPoint destOrigin() const { return m_destOrigin; } |
| 181 void setDestOrigin(const IntPoint& destOrigin) | 179 void setDestOrigin(const IntPoint& destOrigin) |
| 182 { | 180 { |
| 183 m_destOrigin = destOrigin; | 181 m_destOrigin = destOrigin; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const
; | 235 LayoutPoint adjustedPositionRelativeToOffsetParent(const LayoutPoint&) const
; |
| 238 | 236 |
| 239 bool calculateHasBoxDecorations() const; | 237 bool calculateHasBoxDecorations() const; |
| 240 void calculateBackgroundImageGeometry(const RenderLayerModelObject* paintCon
tainer, const FillLayer&, const LayoutRect& paintRect, BackgroundImageGeometry&,
RenderObject* = 0) const; | 238 void calculateBackgroundImageGeometry(const RenderLayerModelObject* paintCon
tainer, const FillLayer&, const LayoutRect& paintRect, BackgroundImageGeometry&,
RenderObject* = 0) const; |
| 241 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL
ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; | 239 void getBorderEdgeInfo(class BorderEdge[], const RenderStyle*, bool includeL
ogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; |
| 242 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; | 240 bool borderObscuresBackgroundEdge(const FloatSize& contextScale) const; |
| 243 bool borderObscuresBackground() const; | 241 bool borderObscuresBackground() const; |
| 244 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*,
const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&,
bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; | 242 RoundedRect backgroundRoundedRectAdjustedForBleedAvoidance(GraphicsContext*,
const LayoutRect&, BackgroundBleedAvoidance, InlineFlowBox*, const LayoutSize&,
bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; |
| 245 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const
LayoutRect&, BackgroundBleedAvoidance) const; | 243 LayoutRect borderInnerRectAdjustedForBleedAvoidance(GraphicsContext*, const
LayoutRect&, BackgroundBleedAvoidance) const; |
| 246 | 244 |
| 247 InterpolationQuality chooseInterpolationQuality(GraphicsContext*, Image*, co
nst void*, const LayoutSize&); | |
| 248 | |
| 249 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); | 245 LayoutRect localCaretRectForEmptyElement(LayoutUnit width, LayoutUnit textIn
dentOffset); |
| 250 | 246 |
| 251 static void clipRoundedInnerRect(GraphicsContext*, const LayoutRect&, const
RoundedRect& clipRect); | 247 static void clipRoundedInnerRect(GraphicsContext*, const LayoutRect&, const
RoundedRect& clipRect); |
| 252 | 248 |
| 253 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; | 249 bool hasAutoHeightOrContainingBlockWithAutoHeight() const; |
| 254 | 250 |
| 255 bool isDocumentElementWithOpaqueBackground() const; | 251 bool isDocumentElementWithOpaqueBackground() const; |
| 256 | 252 |
| 257 void paintRootBackgroundColor(const PaintInfo&, const LayoutRect&, const Col
or&); | 253 void paintRootBackgroundColor(const PaintInfo&, const LayoutRect&, const Col
or&); |
| 258 | 254 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 288 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], | 284 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c
onst class BorderEdge[], |
| 289 float thickness, float drawThickness, BoxSide, const
RenderStyle*, | 285 float thickness, float drawThickness, BoxSide, const
RenderStyle*, |
| 290 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); | 286 Color, EBorderStyle, BackgroundBleedAvoidance, bool
includeLogicalLeftEdge, bool includeLogicalRightEdge); |
| 291 }; | 287 }; |
| 292 | 288 |
| 293 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); | 289 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); |
| 294 | 290 |
| 295 } // namespace blink | 291 } // namespace blink |
| 296 | 292 |
| 297 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_ | 293 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_ |
| OLD | NEW |