Index: cc/trees/layer_sorter.cc |
diff --git a/cc/trees/layer_sorter.cc b/cc/trees/layer_sorter.cc |
index bde49201f4e717c74e01808b677c37b005cafc4c..e171fe01120f6389931b1acb403581968e7126db 100644 |
--- a/cc/trees/layer_sorter.cc |
+++ b/cc/trees/layer_sorter.cc |
@@ -90,7 +90,7 @@ LayerSorter::ABCompareResult LayerSorter::CheckOverlap(LayerShape* a, |
// Early out if the projected bounds don't overlap. |
if (!a->projected_bounds.Intersects(b->projected_bounds)) |
- return NONE; |
+ return None; |
gfx::PointF aPoints[4] = { a->projected_quad.p1(), |
a->projected_quad.p2(), |
@@ -123,7 +123,7 @@ LayerSorter::ABCompareResult LayerSorter::CheckOverlap(LayerShape* a, |
overlap_points.push_back(r); |
if (overlap_points.empty()) |
- return NONE; |
+ return None; |
// Check the corresponding layer depth value for all overlap points to |
// determine which layer is in front. |
@@ -157,7 +157,7 @@ LayerSorter::ABCompareResult LayerSorter::CheckOverlap(LayerShape* a, |
// If we can't tell which should come first, we use document order. |
if (!accurate) |
- return A_BEFORE_B; |
+ return ABeforeB; |
float max_diff = |
std::abs(max_positive) > std::abs(max_negative) ? |
@@ -176,9 +176,9 @@ LayerSorter::ABCompareResult LayerSorter::CheckOverlap(LayerShape* a, |
// Maintain relative order if the layers have the same depth at all |
// intersection points. |
if (max_diff <= 0.f) |
- return A_BEFORE_B; |
+ return ABeforeB; |
- return B_BEFORE_A; |
+ return BBeforeA; |
} |
LayerShape::LayerShape() {} |
@@ -320,10 +320,10 @@ void LayerSorter::CreateGraphEdges() { |
&weight); |
GraphNode* start_node = NULL; |
GraphNode* end_node = NULL; |
- if (overlap_result == A_BEFORE_B) { |
+ if (overlap_result == ABeforeB) { |
start_node = &node_a; |
end_node = &node_b; |
- } else if (overlap_result == B_BEFORE_A) { |
+ } else if (overlap_result == BBeforeA) { |
start_node = &node_b; |
end_node = &node_a; |
} |