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

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

Issue 1741073002: Rename enums/functions that collide in chromium style in core/layout/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-6
Patch Set: get-names-7: rebase Created 4 years, 9 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) 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class TransformState; 44 class TransformState;
45 45
46 // Can be used while walking the layout tree to cache data about offsets and tra nsforms. 46 // Can be used while walking the layout tree to cache data about offsets and tra nsforms.
47 class CORE_EXPORT LayoutGeometryMap { 47 class CORE_EXPORT LayoutGeometryMap {
48 DISALLOW_NEW(); 48 DISALLOW_NEW();
49 WTF_MAKE_NONCOPYABLE(LayoutGeometryMap); 49 WTF_MAKE_NONCOPYABLE(LayoutGeometryMap);
50 public: 50 public:
51 LayoutGeometryMap(MapCoordinatesFlags = UseTransforms); 51 LayoutGeometryMap(MapCoordinatesFlags = UseTransforms);
52 ~LayoutGeometryMap(); 52 ~LayoutGeometryMap();
53 53
54 MapCoordinatesFlags mapCoordinatesFlags() const { return m_mapCoordinatesFla gs; } 54 MapCoordinatesFlags getMapCoordinatesFlags() const { return m_mapCoordinates Flags; }
55 55
56 FloatRect absoluteRect(const FloatRect& rect) const 56 FloatRect absoluteRect(const FloatRect& rect) const
57 { 57 {
58 return mapToAncestor(rect, 0).boundingBox(); 58 return mapToAncestor(rect, 0).boundingBox();
59 } 59 }
60 60
61 // Map to an ancestor. Will assert that the ancestor has been pushed onto th is map. 61 // Map to an ancestor. Will assert that the ancestor has been pushed onto th is map.
62 // A null ancestor maps through the LayoutView (including its scale transfor m, if any). 62 // A null ancestor maps through the LayoutView (including its scale transfor m, if any).
63 // If the ancestor is the LayoutView, the scroll offset is applied, but not the scale. 63 // If the ancestor is the LayoutView, the scroll offset is applied, but not the scale.
64 FloatQuad mapToAncestor(const FloatRect&, const LayoutBoxModelObject*) const ; 64 FloatQuad mapToAncestor(const FloatRect&, const LayoutBoxModelObject*) const ;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 int m_transformedStepsCount; 101 int m_transformedStepsCount;
102 int m_fixedStepsCount; 102 int m_fixedStepsCount;
103 LayoutGeometryMapSteps m_mapping; 103 LayoutGeometryMapSteps m_mapping;
104 LayoutSize m_accumulatedOffset; 104 LayoutSize m_accumulatedOffset;
105 MapCoordinatesFlags m_mapCoordinatesFlags; 105 MapCoordinatesFlags m_mapCoordinatesFlags;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 #endif // LayoutGeometryMap_h 110 #endif // LayoutGeometryMap_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698