Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: sky/engine/core/rendering/RenderBoxModelObject.h

Issue 735033003: Remove a bunch of dead code from RenderLayer (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 26 matching lines...) Expand all
37 typedef unsigned BorderEdgeFlags; 37 typedef unsigned BorderEdgeFlags;
38 38
39 enum BackgroundBleedAvoidance { 39 enum BackgroundBleedAvoidance {
40 BackgroundBleedNone, 40 BackgroundBleedNone,
41 BackgroundBleedShrinkBackground, 41 BackgroundBleedShrinkBackground,
42 BackgroundBleedClipBackground, 42 BackgroundBleedClipBackground,
43 BackgroundBleedBackgroundOverBorder 43 BackgroundBleedBackgroundOverBorder
44 }; 44 };
45 45
46 enum ContentChangeType { 46 enum ContentChangeType {
47 ImageChanged,
48 CanvasChanged, 47 CanvasChanged,
49 CanvasContextChanged 48 CanvasContextChanged
50 }; 49 };
51 50
52 // This class is the base for all objects that adhere to the CSS box model as de scribed 51 // This class is the base for all objects that adhere to the CSS box model as de scribed
53 // at http://www.w3.org/TR/CSS21/box.html 52 // at http://www.w3.org/TR/CSS21/box.html
54 53
55 class RenderBoxModelObject : public RenderLayerModelObject { 54 class RenderBoxModelObject : public RenderLayerModelObject {
56 public: 55 public:
57 RenderBoxModelObject(ContainerNode*); 56 RenderBoxModelObject(ContainerNode*);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 159
161 // Overridden by subclasses to determine line height and baseline position. 160 // Overridden by subclasses to determine line height and baseline position.
162 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const = 0; 161 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const = 0;
163 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const = 0; 162 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const = 0;
164 163
165 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 164 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
166 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const override; 165 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const override;
167 166
168 virtual void setSelectionState(SelectionState) override; 167 virtual void setSelectionState(SelectionState) override;
169 168
170 void contentChanged(ContentChangeType);
171 bool hasAcceleratedCompositing() const; 169 bool hasAcceleratedCompositing() const;
172 170
173 protected: 171 protected:
174 virtual void willBeDestroyed() override; 172 virtual void willBeDestroyed() override;
175 173
176 class BackgroundImageGeometry { 174 class BackgroundImageGeometry {
177 public: 175 public:
178 BackgroundImageGeometry() 176 BackgroundImageGeometry()
179 : m_hasNonLocalGeometry(false) 177 : m_hasNonLocalGeometry(false)
180 { } 178 { }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[], 288 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[],
291 float thickness, float drawThickness, BoxSide, const RenderStyle*, 289 float thickness, float drawThickness, BoxSide, const RenderStyle*,
292 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); 290 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
293 }; 291 };
294 292
295 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); 293 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject());
296 294
297 } // namespace blink 295 } // namespace blink
298 296
299 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_ 297 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOXMODELOBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698