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

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

Issue 2727093002: Account for perspective and preserve-3d in mapToVisualRectInAncestorSpace (Closed)
Patch Set: none Created 3 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) 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 LayoutUnit viewLogicalHeightForPercentages() const; 111 LayoutUnit viewLogicalHeightForPercentages() const;
112 112
113 float zoomFactor() const; 113 float zoomFactor() const;
114 114
115 FrameView* frameView() const { return m_frameView; } 115 FrameView* frameView() const { return m_frameView; }
116 116
117 // |ancestor| can be nullptr, which will map the rect to the main frame's 117 // |ancestor| can be nullptr, which will map the rect to the main frame's
118 // space, even if the main frame is remote (or has intermediate remote 118 // space, even if the main frame is remote (or has intermediate remote
119 // frames in the chain). 119 // frames in the chain).
120 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, 120 bool mapToVisualRectInAncestorSpaceInternal(
121 LayoutRect&,
122 MapCoordinatesFlags,
123 VisualRectFlags) const;
124 bool mapToVisualRectInAncestorSpace(
125 const LayoutBoxModelObject* ancestor, 121 const LayoutBoxModelObject* ancestor,
126 LayoutRect&, 122 TransformState&,
123 MapCoordinatesFlags,
124 VisualRectFlags) const;
125
126 bool mapToVisualRectInAncestorSpaceInternal(
127 const LayoutBoxModelObject* ancestor,
128 TransformState&,
127 VisualRectFlags = DefaultVisualRectFlags) const override; 129 VisualRectFlags = DefaultVisualRectFlags) const override;
128 LayoutSize offsetForFixedPosition(bool includePendingScroll = false) const; 130 LayoutSize offsetForFixedPosition(bool includePendingScroll = false) const;
129 131
130 void invalidatePaintForViewAndCompositedLayers(); 132 void invalidatePaintForViewAndCompositedLayers();
131 133
132 PaintInvalidationReason invalidatePaintIfNeeded( 134 PaintInvalidationReason invalidatePaintIfNeeded(
133 const PaintInvalidationState&) override; 135 const PaintInvalidationState&) override;
134 PaintInvalidationReason invalidatePaintIfNeeded( 136 PaintInvalidationReason invalidatePaintIfNeeded(
135 const PaintInvalidatorContext&) const override; 137 const PaintInvalidatorContext&) const override;
136 138
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 unsigned m_hitTestCount; 320 unsigned m_hitTestCount;
319 unsigned m_hitTestCacheHits; 321 unsigned m_hitTestCacheHits;
320 Persistent<HitTestCache> m_hitTestCache; 322 Persistent<HitTestCache> m_hitTestCache;
321 }; 323 };
322 324
323 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 325 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
324 326
325 } // namespace blink 327 } // namespace blink
326 328
327 #endif // LayoutView_h 329 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698