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

Side by Side Diff: Source/core/rendering/FloatingObjects.h

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 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 | « Source/core/rendering/EllipsisBox.h ('k') | Source/core/rendering/HitTestRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); } 67 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); }
68 LayoutUnit width() const { return m_frameRect.width(); } 68 LayoutUnit width() const { return m_frameRect.width(); }
69 LayoutUnit height() const { return m_frameRect.height(); } 69 LayoutUnit height() const { return m_frameRect.height(); }
70 70
71 void setX(LayoutUnit x) { ASSERT(!isInPlacedTree()); m_frameRect.setX(x); } 71 void setX(LayoutUnit x) { ASSERT(!isInPlacedTree()); m_frameRect.setX(x); }
72 void setY(LayoutUnit y) { ASSERT(!isInPlacedTree()); m_frameRect.setY(y); } 72 void setY(LayoutUnit y) { ASSERT(!isInPlacedTree()); m_frameRect.setY(y); }
73 void setWidth(LayoutUnit width) { ASSERT(!isInPlacedTree()); m_frameRect.set Width(width); } 73 void setWidth(LayoutUnit width) { ASSERT(!isInPlacedTree()); m_frameRect.set Width(width); }
74 void setHeight(LayoutUnit height) { ASSERT(!isInPlacedTree()); m_frameRect.s etHeight(height); } 74 void setHeight(LayoutUnit height) { ASSERT(!isInPlacedTree()); m_frameRect.s etHeight(height); }
75 75
76 const LayoutRect& frameRect() const { ASSERT(isPlaced()); return m_frameRect ; } 76 const LayoutRect& frameRect() const { ASSERT(isPlaced()); return m_frameRect ; }
77 void setFrameRect(const LayoutRect& frameRect) { ASSERT(!isInPlacedTree()); m_frameRect = frameRect; }
78 77
79 int paginationStrut() const { return m_paginationStrut; } 78 int paginationStrut() const { return m_paginationStrut; }
80 void setPaginationStrut(int strut) { m_paginationStrut = strut; } 79 void setPaginationStrut(int strut) { m_paginationStrut = strut; }
81 80
82 #if ENABLE(ASSERT) 81 #if ENABLE(ASSERT)
83 bool isInPlacedTree() const { return m_isInPlacedTree; } 82 bool isInPlacedTree() const { return m_isInPlacedTree; }
84 void setIsInPlacedTree(bool value) { m_isInPlacedTree = value; } 83 void setIsInPlacedTree(bool value) { m_isInPlacedTree = value; }
85 #endif 84 #endif
86 85
87 bool shouldPaint() const { return m_shouldPaint; } 86 bool shouldPaint() const { return m_shouldPaint; }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 static String string(const int value); 198 static String string(const int value);
200 }; 199 };
201 template<> struct ValueToString<FloatingObject*> { 200 template<> struct ValueToString<FloatingObject*> {
202 static String string(const FloatingObject*); 201 static String string(const FloatingObject*);
203 }; 202 };
204 #endif 203 #endif
205 204
206 } // namespace blink 205 } // namespace blink
207 206
208 #endif // FloatingObjects_h 207 #endif // FloatingObjects_h
OLDNEW
« no previous file with comments | « Source/core/rendering/EllipsisBox.h ('k') | Source/core/rendering/HitTestRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698