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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void trace(Visitor*) OVERRIDE; 47 virtual void trace(Visitor*) OVERRIDE;
48 48
49 bool hitTest(const HitTestRequest&, HitTestResult&); 49 bool hitTest(const HitTestRequest&, HitTestResult&);
50 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&); 50 bool hitTest(const HitTestRequest&, const HitTestLocation&, HitTestResult&);
51 51
52 // Returns the total count of calls to HitTest, for testing. 52 // Returns the total count of calls to HitTest, for testing.
53 unsigned hitTestCount() const { return m_hitTestCount; } 53 unsigned hitTestCount() const { return m_hitTestCount; }
54 54
55 virtual const char* renderName() const OVERRIDE { return "RenderView"; } 55 virtual const char* renderName() const OVERRIDE { return "RenderView"; }
56 56
57 virtual bool isRenderView() const OVERRIDE { return true; } 57 virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRenderView || RenderBlockFlow::isOfType(type); }
58 58
59 virtual LayerType layerTypeRequired() const OVERRIDE { return NormalLayer; } 59 virtual LayerType layerTypeRequired() const OVERRIDE { return NormalLayer; }
60 60
61 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; 61 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE;
62 62
63 virtual void layout() OVERRIDE; 63 virtual void layout() OVERRIDE;
64 virtual void updateLogicalWidth() OVERRIDE; 64 virtual void updateLogicalWidth() OVERRIDE;
65 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 65 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
66 66
67 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const OVERRIDE; 67 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const OVERRIDE;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 231 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
232 } 232 }
233 private: 233 private:
234 const PaintInvalidationState* m_paintInvalidationState; 234 const PaintInvalidationState* m_paintInvalidationState;
235 bool m_didDisable; 235 bool m_didDisable;
236 }; 236 };
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif // RenderView_h 240 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698