OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
10 * disclaimer. | 10 * disclaimer. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 return basicShape.release(); | 248 return basicShape.release(); |
249 } | 249 } |
250 | 250 |
251 FloatPoint floatPointForCenterCoordinate(const BasicShapeCenterCoordinate& cente
rX, const BasicShapeCenterCoordinate& centerY, FloatSize boxSize) | 251 FloatPoint floatPointForCenterCoordinate(const BasicShapeCenterCoordinate& cente
rX, const BasicShapeCenterCoordinate& centerY, FloatSize boxSize) |
252 { | 252 { |
253 float x = floatValueForLength(centerX.computedLength(), boxSize.width()); | 253 float x = floatValueForLength(centerX.computedLength(), boxSize.width()); |
254 float y = floatValueForLength(centerY.computedLength(), boxSize.height()); | 254 float y = floatValueForLength(centerY.computedLength(), boxSize.height()); |
255 return FloatPoint(x, y); | 255 return FloatPoint(x, y); |
256 } | 256 } |
257 | 257 |
258 } | 258 } // namespace blink |
OLD | NEW |