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

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

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.h ('k') | Source/core/rendering/RenderFrame.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) 2011 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above 8 * 1. Redistributions of source code must retain the above
9 * copyright notice, this list of conditions and the following 9 * copyright notice, this list of conditions and the following
10 * disclaimer. 10 * disclaimer.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // flow thread. It will also help in doing the layout. However, it will not rend er 51 // flow thread. It will also help in doing the layout. However, it will not rend er
52 // directly to screen. Instead, RenderRegion objects will redirect their paint 52 // directly to screen. Instead, RenderRegion objects will redirect their paint
53 // and nodeAtPoint methods to this object. Each RenderRegion will actually be a viewPort 53 // and nodeAtPoint methods to this object. Each RenderRegion will actually be a viewPort
54 // of the RenderFlowThread. 54 // of the RenderFlowThread.
55 55
56 class RenderFlowThread: public RenderBlock { 56 class RenderFlowThread: public RenderBlock {
57 public: 57 public:
58 RenderFlowThread(); 58 RenderFlowThread();
59 virtual ~RenderFlowThread() { }; 59 virtual ~RenderFlowThread() { };
60 60
61 virtual bool isRenderFlowThread() const { return true; } 61 virtual bool isRenderFlowThread() const OVERRIDE FINAL { return true; }
62 62
63 virtual void layout(); 63 virtual void layout() OVERRIDE FINAL;
64 64
65 // Always create a RenderLayer for the RenderFlowThread so that we 65 // Always create a RenderLayer for the RenderFlowThread so that we
66 // can easily avoid drawing the children directly. 66 // can easily avoid drawing the children directly.
67 virtual bool requiresLayer() const { return true; } 67 virtual bool requiresLayer() const OVERRIDE FINAL { return true; }
68 68
69 void removeFlowChildInfo(RenderObject*); 69 void removeFlowChildInfo(RenderObject*);
70 #ifndef NDEBUG 70 #ifndef NDEBUG
71 bool hasChildInfo(RenderObject* child) const { return child && child->isBox( ) && m_regionRangeMap.contains(toRenderBox(child)); } 71 bool hasChildInfo(RenderObject* child) const { return child && child->isBox( ) && m_regionRangeMap.contains(toRenderBox(child)); }
72 #endif 72 #endif
73 73
74 virtual void addRegionToThread(RenderRegion*); 74 virtual void addRegionToThread(RenderRegion*);
75 virtual void removeRegionFromThread(RenderRegion*); 75 virtual void removeRegionFromThread(RenderRegion*);
76 const RenderRegionList& renderRegionList() const { return m_regionList; } 76 const RenderRegionList& renderRegionList() const { return m_regionList; }
77 77
78 virtual void updateLogicalWidth() OVERRIDE; 78 virtual void updateLogicalWidth() OVERRIDE FINAL;
79 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 79 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
80 80
81 void paintFlowThreadPortionInRegion(PaintInfo&, RenderRegion*, LayoutRect fl owThreadPortionRect, LayoutRect flowThreadPortionOverflowRect, const LayoutPoint &) const; 81 void paintFlowThreadPortionInRegion(PaintInfo&, RenderRegion*, LayoutRect fl owThreadPortionRect, LayoutRect flowThreadPortionOverflowRect, const LayoutPoint &) const;
82 bool hitTestFlowThreadPortionInRegion(RenderRegion*, LayoutRect flowThreadPo rtionRect, LayoutRect flowThreadPortionOverflowRect, const HitTestRequest&, HitT estResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accum ulatedOffset) const; 82 bool hitTestFlowThreadPortionInRegion(RenderRegion*, LayoutRect flowThreadPo rtionRect, LayoutRect flowThreadPortionOverflowRect, const HitTestRequest&, HitT estResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accum ulatedOffset) const;
83 83
84 bool hasRegions() const { return m_regionList.size(); } 84 bool hasRegions() const { return m_regionList.size(); }
85 // Check if the content is flown into at least a region with region styling rules. 85 // Check if the content is flown into at least a region with region styling rules.
86 bool hasRegionsWithStyling() const { return m_hasRegionsWithStyling; } 86 bool hasRegionsWithStyling() const { return m_hasRegionsWithStyling; }
87 void checkRegionsWithStyling(); 87 void checkRegionsWithStyling();
88 88
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 }; 288 };
289 289
290 template <> struct ValueToString<RenderRegion*> { 290 template <> struct ValueToString<RenderRegion*> {
291 static String string(const RenderRegion* value) { return String::format("%p" , value); } 291 static String string(const RenderRegion* value) { return String::format("%p" , value); }
292 }; 292 };
293 #endif 293 #endif
294 294
295 } // namespace WebCore 295 } // namespace WebCore
296 296
297 #endif // RenderFlowThread_h 297 #endif // RenderFlowThread_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderFlexibleBox.h ('k') | Source/core/rendering/RenderFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698