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/api/LayoutItem.h

Issue 2173363002: Improve code readibility of PaintPropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra "const" (might be a typo) Created 4 years, 4 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 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const 287 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const
288 { 288 {
289 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe ct, flags); 289 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe ct, flags);
290 } 290 }
291 291
292 Color resolveColor(int colorProperty) const 292 Color resolveColor(int colorProperty) const
293 { 293 {
294 return m_layoutObject->resolveColor(colorProperty); 294 return m_layoutObject->resolveColor(colorProperty);
295 } 295 }
296 296
297 ObjectPaintProperties* objectPaintProperties() const 297 const ObjectPaintProperties* objectPaintProperties() const
298 { 298 {
299 return m_layoutObject->objectPaintProperties(); 299 return m_layoutObject->objectPaintProperties();
300 } 300 }
301 301
302 protected: 302 protected:
303 LayoutObject* layoutObject() { return m_layoutObject; } 303 LayoutObject* layoutObject() { return m_layoutObject; }
304 const LayoutObject* layoutObject() const { return m_layoutObject; } 304 const LayoutObject* layoutObject() const { return m_layoutObject; }
305 305
306 private: 306 private:
307 LayoutObject* m_layoutObject; 307 LayoutObject* m_layoutObject;
308 308
309 friend class LayoutAPIShim; 309 friend class LayoutAPIShim;
310 }; 310 };
311 311
312 } // namespace blink 312 } // namespace blink
313 313
314 #endif // LayoutItem_h 314 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/paint/ObjectPaintProperties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698