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

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

Issue 2657183002: Use full mapLocalToAncestor machinery in ScrollingCoordinator. (Closed)
Patch Set: Delete unused test file Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutBoxItem_h 5 #ifndef LayoutBoxItem_h
6 #define LayoutBoxItem_h 6 #define LayoutBoxItem_h
7 7
8 #include "core/layout/LayoutBox.h" 8 #include "core/layout/LayoutBox.h"
9 #include "core/layout/api/LayoutBoxModel.h" 9 #include "core/layout/api/LayoutBoxModel.h"
10 #include "platform/scroll/ScrollTypes.h" 10 #include "platform/scroll/ScrollTypes.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 LayoutSize contentBoxOffset() const { return toBox()->contentBoxOffset(); } 56 LayoutSize contentBoxOffset() const { return toBox()->contentBoxOffset(); }
57 57
58 void mapLocalToAncestor( 58 void mapLocalToAncestor(
59 const LayoutBoxModelObject* ancestor, 59 const LayoutBoxModelObject* ancestor,
60 TransformState& state, 60 TransformState& state,
61 MapCoordinatesFlags flags = ApplyContainerFlip) const { 61 MapCoordinatesFlags flags = ApplyContainerFlip) const {
62 toBox()->mapLocalToAncestor(ancestor, state, flags); 62 toBox()->mapLocalToAncestor(ancestor, state, flags);
63 } 63 }
64 64
65 FloatQuad absoluteContentQuad() const { 65 FloatQuad absoluteContentQuad(MapCoordinatesFlags flags = 0) const {
66 return toBox()->absoluteContentQuad(); 66 return toBox()->absoluteContentQuad(flags);
67 } 67 }
68 68
69 private: 69 private:
70 LayoutBox* toBox() { return toLayoutBox(layoutObject()); } 70 LayoutBox* toBox() { return toLayoutBox(layoutObject()); }
71 71
72 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); } 72 const LayoutBox* toBox() const { return toLayoutBox(layoutObject()); }
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // LayoutBoxItem_h 77 #endif // LayoutBoxItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698