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

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

Issue 1994443003: [Layout API] Use FrameView::layoutViewItem() in WebPluginContainerImpl.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 LayoutItem_h 5 #ifndef LayoutItem_h
6 #define LayoutItem_h 6 #define LayoutItem_h
7 7
8 #include "core/inspector/InspectorTraceEvents.h" 8 #include "core/inspector/InspectorTraceEvents.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() 173 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants()
174 { 174 {
175 m_layoutObject->setShouldDoFullPaintInvalidationIncludingNonCompositingD escendants(); 175 m_layoutObject->setShouldDoFullPaintInvalidationIncludingNonCompositingD escendants();
176 } 176 }
177 177
178 void computeLayerHitTestRects(LayerHitTestRects& layerRects) const 178 void computeLayerHitTestRects(LayerHitTestRects& layerRects) const
179 { 179 {
180 m_layoutObject->computeLayerHitTestRects(layerRects); 180 m_layoutObject->computeLayerHitTestRects(layerRects);
181 } 181 }
182 182
183 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod e = 0) const
184 {
185 return m_layoutObject->localToAbsoluteQuad(quad, mode);
186 }
187
183 FloatPoint absoluteToLocal(const FloatPoint& point, MapCoordinatesFlags mode = 0) const 188 FloatPoint absoluteToLocal(const FloatPoint& point, MapCoordinatesFlags mode = 0) const
184 { 189 {
185 return m_layoutObject->absoluteToLocal(point, mode); 190 return m_layoutObject->absoluteToLocal(point, mode);
186 } 191 }
187 192
188 void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing re ason) 193 void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing re ason)
189 { 194 {
190 m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason); 195 m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason);
191 } 196 }
192 197
193 protected: 198 protected:
194 LayoutObject* layoutObject() { return m_layoutObject; } 199 LayoutObject* layoutObject() { return m_layoutObject; }
195 const LayoutObject* layoutObject() const { return m_layoutObject; } 200 const LayoutObject* layoutObject() const { return m_layoutObject; }
196 201
197 private: 202 private:
198 LayoutObject* m_layoutObject; 203 LayoutObject* m_layoutObject;
199 }; 204 };
200 205
201 } // namespace blink 206 } // namespace blink
202 207
203 #endif // LayoutItem_h 208 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698