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

Side by Side Diff: Source/platform/Length.h

Issue 720003002: Fixed positioned element with relative percentage positioned parent is wrongly placed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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/RenderBox.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 /* 1 /*
2 Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 3 Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com) 4 Copyright (C) 2011 Rik Cabanier (cabanier@adobe.com)
5 Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 Copyright (C) 2011 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 if (m_isFloat) 139 if (m_isFloat)
140 m_floatValue = static_cast<float>(m_floatValue * v); 140 m_floatValue = static_cast<float>(m_floatValue * v);
141 else 141 else
142 m_intValue = static_cast<int>(m_intValue * v); 142 m_intValue = static_cast<int>(m_intValue * v);
143 143
144 return *this; 144 return *this;
145 } 145 }
146 146
147 // FIXME: Make this private (if possible) or at least rename it (http://crbu g.com/432707).
147 inline float value() const 148 inline float value() const
148 { 149 {
149 return getFloatValue(); 150 return getFloatValue();
150 } 151 }
151 152
152 int intValue() const 153 int intValue() const
153 { 154 {
154 if (isCalculated()) { 155 if (isCalculated()) {
155 ASSERT_NOT_REACHED(); 156 ASSERT_NOT_REACHED();
156 return 0; 157 return 0;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 bool m_quirk; 319 bool m_quirk;
319 unsigned char m_type; 320 unsigned char m_type;
320 bool m_isFloat; 321 bool m_isFloat;
321 }; 322 };
322 323
323 PLATFORM_EXPORT Vector<Length> parseHTMLAreaElementCoords(const String&); 324 PLATFORM_EXPORT Vector<Length> parseHTMLAreaElementCoords(const String&);
324 325
325 } // namespace blink 326 } // namespace blink
326 327
327 #endif // Length_h 328 #endif // Length_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698