| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend
ants" }, | 298 { CompositingReasonClipsCompositingDescendants, "clipsCompositingDescend
ants" }, |
| 299 { CompositingReasonPerspective, "perspective" }, | 299 { CompositingReasonPerspective, "perspective" }, |
| 300 { CompositingReasonPreserve3D, "preserve3D" }, | 300 { CompositingReasonPreserve3D, "preserve3D" }, |
| 301 { CompositingReasonRoot, "root" }, | 301 { CompositingReasonRoot, "root" }, |
| 302 { CompositingReasonLayerForClip, "layerForClip" }, | 302 { CompositingReasonLayerForClip, "layerForClip" }, |
| 303 { CompositingReasonLayerForScrollbar, "layerForScrollbar" }, | 303 { CompositingReasonLayerForScrollbar, "layerForScrollbar" }, |
| 304 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain
er" }, | 304 { CompositingReasonLayerForScrollingContainer, "layerForScrollingContain
er" }, |
| 305 { CompositingReasonLayerForForeground, "layerForForeground" }, | 305 { CompositingReasonLayerForForeground, "layerForForeground" }, |
| 306 { CompositingReasonLayerForBackground, "layerForBackground" }, | 306 { CompositingReasonLayerForBackground, "layerForBackground" }, |
| 307 { CompositingReasonLayerForMask, "layerForMask" }, | 307 { CompositingReasonLayerForMask, "layerForMask" }, |
| 308 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" } | 308 { CompositingReasonLayerForVideoOverlay, "layerForVideoOverlay" }, |
| 309 { CompositingReasonIsolateCompositedDescendants, "isolateCompositedDesce
ndants"} |
| 309 }; | 310 }; |
| 310 | 311 |
| 311 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); | 312 const GraphicsLayer* graphicsLayer = layerById(errorString, layerId); |
| 312 if (!graphicsLayer) | 313 if (!graphicsLayer) |
| 313 return; | 314 return; |
| 314 WebKit::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingRea
sons(); | 315 WebKit::WebCompositingReasons reasonsBitmask = graphicsLayer->compositingRea
sons(); |
| 315 reasonStrings = TypeBuilder::Array<String>::create(); | 316 reasonStrings = TypeBuilder::Array<String>::create(); |
| 316 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { | 317 for (size_t i = 0; i < WTF_ARRAY_LENGTH(compositingReasonNames); ++i) { |
| 317 if (!(reasonsBitmask & compositingReasonNames[i].mask)) | 318 if (!(reasonsBitmask & compositingReasonNames[i].mask)) |
| 318 continue; | 319 continue; |
| 319 reasonStrings->addItem(compositingReasonNames[i].protocolName); | 320 reasonStrings->addItem(compositingReasonNames[i].protocolName); |
| 320 #ifndef _NDEBUG | 321 #ifndef _NDEBUG |
| 321 reasonsBitmask &= ~compositingReasonNames[i].mask; | 322 reasonsBitmask &= ~compositingReasonNames[i].mask; |
| 322 #endif | 323 #endif |
| 323 } | 324 } |
| 324 ASSERT(!reasonsBitmask); | 325 ASSERT(!reasonsBitmask); |
| 325 } | 326 } |
| 326 | 327 |
| 327 } // namespace WebCore | 328 } // namespace WebCore |
| OLD | NEW |