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

Side by Side Diff: Source/core/rendering/line/LineLayoutState.h

Issue 134453006: Remove "using namespace" statements from headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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/line/BreakingContextInlineHeaders.h ('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 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ight reserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2014 Adobe Systems Incorporated. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 void setRepaintRange(LayoutUnit logicalHeight) 58 void setRepaintRange(LayoutUnit logicalHeight)
59 { 59 {
60 m_usesRepaintBounds = true; 60 m_usesRepaintBounds = true;
61 m_repaintLogicalTop = m_repaintLogicalBottom = logicalHeight; 61 m_repaintLogicalTop = m_repaintLogicalBottom = logicalHeight;
62 } 62 }
63 63
64 void updateRepaintRangeFromBox(RootInlineBox* box, LayoutUnit paginationDelt a = 0) 64 void updateRepaintRangeFromBox(RootInlineBox* box, LayoutUnit paginationDelt a = 0)
65 { 65 {
66 m_usesRepaintBounds = true; 66 m_usesRepaintBounds = true;
67 m_repaintLogicalTop = min(m_repaintLogicalTop, box->logicalTopVisualOver flow() + min<LayoutUnit>(paginationDelta, 0)); 67 m_repaintLogicalTop = std::min(m_repaintLogicalTop, box->logicalTopVisua lOverflow() + std::min<LayoutUnit>(paginationDelta, 0));
68 m_repaintLogicalBottom = max(m_repaintLogicalBottom, box->logicalBottomV isualOverflow() + max<LayoutUnit>(paginationDelta, 0)); 68 m_repaintLogicalBottom = std::max(m_repaintLogicalBottom, box->logicalBo ttomVisualOverflow() + std::max<LayoutUnit>(paginationDelta, 0));
69 } 69 }
70 70
71 bool endLineMatched() const { return m_endLineMatched; } 71 bool endLineMatched() const { return m_endLineMatched; }
72 void setEndLineMatched(bool endLineMatched) { m_endLineMatched = endLineMatc hed; } 72 void setEndLineMatched(bool endLineMatched) { m_endLineMatched = endLineMatc hed; }
73 73
74 bool checkForFloatsFromLastLine() const { return m_checkForFloatsFromLastLin e; } 74 bool checkForFloatsFromLastLine() const { return m_checkForFloatsFromLastLin e; }
75 void setCheckForFloatsFromLastLine(bool check) { m_checkForFloatsFromLastLin e = check; } 75 void setCheckForFloatsFromLastLine(bool check) { m_checkForFloatsFromLastLin e = check; }
76 76
77 LineInfo& lineInfo() { return m_lineInfo; } 77 LineInfo& lineInfo() { return m_lineInfo; }
78 const LineInfo& lineInfo() const { return m_lineInfo; } 78 const LineInfo& lineInfo() const { return m_lineInfo; }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 LayoutUnit m_adjustedLogicalLineTop; 116 LayoutUnit m_adjustedLogicalLineTop;
117 117
118 bool m_usesRepaintBounds; 118 bool m_usesRepaintBounds;
119 119
120 RenderFlowThread* m_flowThread; 120 RenderFlowThread* m_flowThread;
121 }; 121 };
122 122
123 } 123 }
124 124
125 #endif // LineLayoutState_h 125 #endif // LineLayoutState_h
OLDNEW
« no previous file with comments | « Source/core/rendering/line/BreakingContextInlineHeaders.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698