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

Side by Side Diff: Source/core/layout/svg/line/SVGInlineFlowBox.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Computer Inc. 3 * Copyright (C) 2006 Apple Computer Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 15 matching lines...) Expand all
26 namespace blink { 26 namespace blink {
27 27
28 class SVGInlineFlowBox final : public InlineFlowBox { 28 class SVGInlineFlowBox final : public InlineFlowBox {
29 public: 29 public:
30 SVGInlineFlowBox(LayoutObject& obj) 30 SVGInlineFlowBox(LayoutObject& obj)
31 : InlineFlowBox(obj) 31 : InlineFlowBox(obj)
32 , m_logicalHeight(0) 32 , m_logicalHeight(0)
33 { 33 {
34 } 34 }
35 35
36 virtual bool isSVGInlineFlowBox() const override { return true; } 36 bool isSVGInlineFlowBox() const override { return true; }
37 virtual LayoutUnit virtualLogicalHeight() const override { return m_logicalH eight; } 37 LayoutUnit virtualLogicalHeight() const override { return m_logicalHeight; }
38 void setLogicalHeight(LayoutUnit h) { m_logicalHeight = h; } 38 void setLogicalHeight(LayoutUnit h) { m_logicalHeight = h; }
39 39
40 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override; 40 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom) override;
41 41
42 virtual LayoutRect calculateBoundaries() const override; 42 LayoutRect calculateBoundaries() const override;
43 43
44 private: 44 private:
45 LayoutUnit m_logicalHeight; 45 LayoutUnit m_logicalHeight;
46 }; 46 };
47 47
48 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox); 48 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineFlowBox);
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // SVGInlineFlowBox_h 52 #endif // SVGInlineFlowBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGViewportContainer.h ('k') | Source/core/layout/svg/line/SVGInlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698