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

Side by Side Diff: Source/core/layout/LayoutGeometryMap.h

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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/layout/LayoutFullScreen.cpp ('k') | Source/core/layout/LayoutGrid.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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void popMappingsToAncestor(const LayoutBoxModelObject*); 69 void popMappingsToAncestor(const LayoutBoxModelObject*);
70 70
71 // The following methods should only be called by layoutObjects inside a cal l to pushMappingsToAncestor(). 71 // The following methods should only be called by layoutObjects inside a cal l to pushMappingsToAncestor().
72 72
73 // Push geometry info between this layoutObject and some ancestor. The ances tor must be its container() or some 73 // Push geometry info between this layoutObject and some ancestor. The ances tor must be its container() or some
74 // stacking context between the layoutObject and its container. 74 // stacking context between the layoutObject and its container.
75 void push(const LayoutObject*, const LayoutSize&, bool accumulatingTransform = false, bool isNonUniform = false, bool isFixedPosition = false, bool hasTrans form = false, LayoutSize offsetForFixedPosition = LayoutSize()); 75 void push(const LayoutObject*, const LayoutSize&, bool accumulatingTransform = false, bool isNonUniform = false, bool isFixedPosition = false, bool hasTrans form = false, LayoutSize offsetForFixedPosition = LayoutSize());
76 void push(const LayoutObject*, const TransformationMatrix&, bool accumulatin gTransform = false, bool isNonUniform = false, bool isFixedPosition = false, boo l hasTransform = false, LayoutSize offsetForFixedPosition = LayoutSize()); 76 void push(const LayoutObject*, const TransformationMatrix&, bool accumulatin gTransform = false, bool isNonUniform = false, bool isFixedPosition = false, boo l hasTransform = false, LayoutSize offsetForFixedPosition = LayoutSize());
77 77
78 private: 78 private:
79 void mapToContainer(TransformState&, const LayoutBoxModelObject* container = 0) const; 79 void mapToContainer(TransformState&, const LayoutBoxModelObject* container = nullptr) const;
80 80
81 void stepInserted(const LayoutGeometryMapStep&); 81 void stepInserted(const LayoutGeometryMapStep&);
82 void stepRemoved(const LayoutGeometryMapStep&); 82 void stepRemoved(const LayoutGeometryMapStep&);
83 83
84 bool hasNonUniformStep() const { return m_nonUniformStepsCount; } 84 bool hasNonUniformStep() const { return m_nonUniformStepsCount; }
85 bool hasTransformStep() const { return m_transformedStepsCount; } 85 bool hasTransformStep() const { return m_transformedStepsCount; }
86 bool hasFixedPositionStep() const { return m_fixedStepsCount; } 86 bool hasFixedPositionStep() const { return m_fixedStepsCount; }
87 87
88 #ifndef NDEBUG 88 #ifndef NDEBUG
89 void dumpSteps() const; 89 void dumpSteps() const;
(...skipping 10 matching lines...) Expand all
100 int m_transformedStepsCount; 100 int m_transformedStepsCount;
101 int m_fixedStepsCount; 101 int m_fixedStepsCount;
102 LayoutGeometryMapSteps m_mapping; 102 LayoutGeometryMapSteps m_mapping;
103 LayoutSize m_accumulatedOffset; 103 LayoutSize m_accumulatedOffset;
104 MapCoordinatesFlags m_mapCoordinatesFlags; 104 MapCoordinatesFlags m_mapCoordinatesFlags;
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // LayoutGeometryMap_h 109 #endif // LayoutGeometryMap_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFullScreen.cpp ('k') | Source/core/layout/LayoutGrid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698