12012-08-02 Emil A Eklund <eae@chromium.org>
2
3 Remove dependency on LayoutTypes.h from transformation code
4 https://bugs.webkit.org/show_bug.cgi?id=93037
5
6 Reviewed by NOBODY (OOPS!).
7
8 TransformationMatrix and HitTestingTransformState includes LayoutTypes.h
9 which is in rendering. This is a layering violation.
10 Remove this dependency as it is no longer needed.
11
12 No new tests, no change in functionality.
13
14 * platform/FractionalLayoutUnit.h:
15 (WebCore::FractionalLayoutUnit::clamp):
16 Add FractionalLayoutUnit::clamp method that clamps a double to a
17 FractionalLayoutUnit.
18
19 * platform/graphics/transforms/TransformationMatrix.cpp:
20 (WebCore::clampEdgeValue):
21 (WebCore::TransformationMatrix::clampedBoundsOfProjectedQuad):
22 Use clamp/max/min from FractionalLayoutUnit instead of going through
23 LayoutUnit abstraction.
24
25 * platform/graphics/transforms/TransformationMatrix.h:
26 * rendering/HitTestingTransformState.cpp:
27 * rendering/HitTestingTransformState.h:
28 Replace use of LayoutRect with FractionalLayoutRect as LayoutRect maps to
29 FractionalLayoutRect on all platforms.
30