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

Side by Side Diff: Source/core/rendering/RenderBoxModelObject.h

Issue 129173004: Update rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 months 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
« no previous file with comments | « Source/core/rendering/RenderBox.h ('k') | Source/core/rendering/RenderButton.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Overridden by subclasses to determine line height and baseline position. 178 // Overridden by subclasses to determine line height and baseline position.
179 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const = 0; 179 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio nMode = PositionOnContainingLine) const = 0;
180 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const = 0; 180 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const = 0;
181 181
182 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE; 182 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst OVERRIDE;
183 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 183 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE;
184 184
185 void highQualityRepaintTimerFired(Timer<RenderBoxModelObject>*); 185 void highQualityRepaintTimerFired(Timer<RenderBoxModelObject>*);
186 186
187 virtual void setSelectionState(SelectionState s); 187 virtual void setSelectionState(SelectionState) OVERRIDE;
188 188
189 bool canHaveBoxInfoInRegion() const { return !isFloating() && !isReplaced() && !isInline() && !hasColumns() && !isTableCell() && isRenderBlock() && !isRende rSVGBlock(); } 189 bool canHaveBoxInfoInRegion() const { return !isFloating() && !isReplaced() && !isInline() && !hasColumns() && !isTableCell() && isRenderBlock() && !isRende rSVGBlock(); }
190 190
191 void contentChanged(ContentChangeType); 191 void contentChanged(ContentChangeType);
192 bool hasAcceleratedCompositing() const; 192 bool hasAcceleratedCompositing() const;
193 193
194 bool startTransition(double, CSSPropertyID, const RenderStyle* fromStyle, co nst RenderStyle* toStyle); 194 bool startTransition(double, CSSPropertyID, const RenderStyle* fromStyle, co nst RenderStyle* toStyle);
195 void transitionPaused(double timeOffset, CSSPropertyID); 195 void transitionPaused(double timeOffset, CSSPropertyID);
196 void transitionFinished(CSSPropertyID); 196 void transitionFinished(CSSPropertyID);
197 197
198 bool startAnimation(double timeOffset, const CSSAnimationData*, const Keyfra meList& keyframes); 198 bool startAnimation(double timeOffset, const CSSAnimationData*, const Keyfra meList& keyframes);
199 void animationPaused(double timeOffset, const String& name); 199 void animationPaused(double timeOffset, const String& name);
200 void animationFinished(const String& name); 200 void animationFinished(const String& name);
201 201
202 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE; 202 virtual void computeLayerHitTestRects(LayerHitTestRects&) const OVERRIDE;
203 203
204 protected: 204 protected:
205 virtual void willBeDestroyed(); 205 virtual void willBeDestroyed() OVERRIDE;
206 206
207 class BackgroundImageGeometry { 207 class BackgroundImageGeometry {
208 public: 208 public:
209 IntPoint destOrigin() const { return m_destOrigin; } 209 IntPoint destOrigin() const { return m_destOrigin; }
210 void setDestOrigin(const IntPoint& destOrigin) 210 void setDestOrigin(const IntPoint& destOrigin)
211 { 211 {
212 m_destOrigin = destOrigin; 212 m_destOrigin = destOrigin;
213 } 213 }
214 214
215 IntRect destRect() const { return m_destRect; } 215 IntRect destRect() const { return m_destRect; }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[], 339 void drawBoxSideFromPath(GraphicsContext*, const LayoutRect&, const Path&, c onst class BorderEdge[],
340 float thickness, float drawThickness, BoxSide, const RenderStyle*, 340 float thickness, float drawThickness, BoxSide, const RenderStyle*,
341 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); 341 Color, EBorderStyle, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge);
342 }; 342 };
343 343
344 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject()); 344 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderBoxModelObject, isBoxModelObject());
345 345
346 } // namespace WebCore 346 } // namespace WebCore
347 347
348 #endif // RenderBoxModelObject_h 348 #endif // RenderBoxModelObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.h ('k') | Source/core/rendering/RenderButton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698