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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 years, 10 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Returns the total count of calls to HitTest, for testing. 53 // Returns the total count of calls to HitTest, for testing.
54 unsigned hitTestCount() const { return m_hitTestCount; } 54 unsigned hitTestCount() const { return m_hitTestCount; }
55 55
56 virtual const char* renderName() const override { return "RenderView"; } 56 virtual const char* renderName() const override { return "RenderView"; }
57 57
58 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRenderView || RenderBlockFlow::isOfType(type); } 58 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectRenderView || RenderBlockFlow::isOfType(type); }
59 59
60 virtual LayerType layerTypeRequired() const override { return NormalLayer; } 60 virtual LayerType layerTypeRequired() const override { return NormalLayer; }
61 61
62 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; 62 virtual bool isChildAllowed(RenderObject*, const RenderStyle*) const overrid e;
63 63
64 virtual void layout() override; 64 virtual void layout() override;
65 virtual void updateLogicalWidth() override; 65 virtual void updateLogicalWidth() override;
66 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override; 66 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const override;
67 67
68 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const override; 68 virtual LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const override;
69 69
70 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards. 70 // The same as the FrameView's layoutHeight/layoutWidth but with null check guards.
71 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const; 71 int viewHeight(IncludeScrollbarsInRect = ExcludeScrollbars) const;
72 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const; 72 int viewWidth(IncludeScrollbarsInRect = ExcludeScrollbars) const;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 251 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
252 } 252 }
253 private: 253 private:
254 const PaintInvalidationState* m_paintInvalidationState; 254 const PaintInvalidationState* m_paintInvalidationState;
255 bool m_didDisable; 255 bool m_didDisable;
256 }; 256 };
257 257
258 } // namespace blink 258 } // namespace blink
259 259
260 #endif // RenderView_h 260 #endif // RenderView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698