| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/graphics/SquashingDisallowedReasons.h" | 5 #include "platform/graphics/SquashingDisallowedReasons.h" |
| 6 | 6 |
| 7 #include "wtf/StdLibExtras.h" | 7 #include "platform/wtf/StdLibExtras.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 const SquashingDisallowedReasonStringMap kSquashingDisallowedReasonStringMap[] = | 11 const SquashingDisallowedReasonStringMap kSquashingDisallowedReasonStringMap[] = |
| 12 { | 12 { |
| 13 {SquashingDisallowedReasonScrollsWithRespectToSquashingLayer, | 13 {SquashingDisallowedReasonScrollsWithRespectToSquashingLayer, |
| 14 "scrollsWithRespectToSquashingLayer", | 14 "scrollsWithRespectToSquashingLayer", |
| 15 "Cannot be squashed since this layer scrolls with respect to the " | 15 "Cannot be squashed since this layer scrolls with respect to the " |
| 16 "squashing layer"}, | 16 "squashing layer"}, |
| 17 {SquashingDisallowedReasonSquashingSparsityExceeded, | 17 {SquashingDisallowedReasonSquashingSparsityExceeded, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 "translation."}, | 68 "translation."}, |
| 69 {SquashingDisallowedReasonFragmentedContent, | 69 {SquashingDisallowedReasonFragmentedContent, |
| 70 "SquashingDisallowedReasonFragmentedContent", | 70 "SquashingDisallowedReasonFragmentedContent", |
| 71 "Cannot squash layers that are inside fragmentation contexts."}, | 71 "Cannot squash layers that are inside fragmentation contexts."}, |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 const size_t kNumberOfSquashingDisallowedReasons = | 74 const size_t kNumberOfSquashingDisallowedReasons = |
| 75 WTF_ARRAY_LENGTH(kSquashingDisallowedReasonStringMap); | 75 WTF_ARRAY_LENGTH(kSquashingDisallowedReasonStringMap); |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |