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

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

Issue 2374613003: [Layout API] Use ownerLayoutItem in updateScrollCorner() (Closed)
Patch Set: Created 4 years, 2 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 | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 const ObjectPaintProperties* objectPaintProperties() const 311 const ObjectPaintProperties* objectPaintProperties() const
312 { 312 {
313 return m_layoutObject->objectPaintProperties(); 313 return m_layoutObject->objectPaintProperties();
314 } 314 }
315 315
316 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const 316 void invalidatePaintRectangle(const LayoutRect& dirtyRect) const
317 { 317 {
318 m_layoutObject->invalidatePaintRectangle(dirtyRect); 318 m_layoutObject->invalidatePaintRectangle(dirtyRect);
319 } 319 }
320 320
321 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(const PseudoStyleRequest& p seudoStyleRequest, const ComputedStyle* parentStyle = nullptr, const ComputedSty le* ownStyle = nullptr) const
322 {
323 return m_layoutObject->getUncachedPseudoStyle(pseudoStyleRequest, parent Style, ownStyle);
324 }
325
321 protected: 326 protected:
322 LayoutObject* layoutObject() { return m_layoutObject; } 327 LayoutObject* layoutObject() { return m_layoutObject; }
323 const LayoutObject* layoutObject() const { return m_layoutObject; } 328 const LayoutObject* layoutObject() const { return m_layoutObject; }
324 329
325 private: 330 private:
326 LayoutObject* m_layoutObject; 331 LayoutObject* m_layoutObject;
327 332
328 friend class LayoutAPIShim; 333 friend class LayoutAPIShim;
329 }; 334 };
330 335
331 } // namespace blink 336 } // namespace blink
332 337
333 #endif // LayoutItem_h 338 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698