| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2012 Apple Inc. 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 node = renderer->parent()->generatingNode(); | 176 node = renderer->parent()->generatingNode(); |
| 177 else if (isGenerated) | 177 else if (isGenerated) |
| 178 node = renderer->generatingNode(); | 178 node = renderer->generatingNode(); |
| 179 else if (isReflection) | 179 else if (isReflection) |
| 180 node = renderer->parent()->node(); | 180 node = renderer->parent()->node(); |
| 181 | 181 |
| 182 // Basic set of properties. | 182 // Basic set of properties. |
| 183 RefPtr<TypeBuilder::LayerTree::Layer> layerObject = TypeBuilder::LayerTree::
Layer::create() | 183 RefPtr<TypeBuilder::LayerTree::Layer> layerObject = TypeBuilder::LayerTree::
Layer::create() |
| 184 .setLayerId(bind(renderLayer)) | 184 .setLayerId(bind(renderLayer)) |
| 185 .setNodeId(idForNode(errorString, node)) | 185 .setNodeId(idForNode(errorString, node)) |
| 186 .setBounds(buildObjectForIntRect(enclosingIntRect(renderer->absoluteBoun
dingBoxRect()))) | 186 .setBounds(buildObjectForIntRect(renderer->absoluteBoundingBoxRect())) |
| 187 .setMemory(backing->backingStoreMemoryEstimate()) | 187 .setMemory(backing->backingStoreMemoryEstimate()) |
| 188 .setCompositedBounds(buildObjectForIntRect(backing->compositedBounds())) | 188 .setCompositedBounds(buildObjectForIntRect(backing->compositedBounds())) |
| 189 .setPaintCount(backing->graphicsLayer()->repaintCount()); | 189 .setPaintCount(backing->graphicsLayer()->repaintCount()); |
| 190 | 190 |
| 191 if (node && node->shadowHost()) | 191 if (node && node->shadowHost()) |
| 192 layerObject->setIsInShadowTree(true); | 192 layerObject->setIsInShadowTree(true); |
| 193 | 193 |
| 194 if (isReflection) | 194 if (isReflection) |
| 195 layerObject->setIsReflection(true); | 195 layerObject->setIsReflection(true); |
| 196 | 196 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) | 351 void InspectorLayerTreeAgent::unbindPseudoElement(PseudoElement* pseudoElement) |
| 352 { | 352 { |
| 353 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); | 353 HashMap<PseudoElement*, String>::iterator iterator = m_pseudoElementToIdMap.
find(pseudoElement); |
| 354 if (iterator == m_pseudoElementToIdMap.end()) | 354 if (iterator == m_pseudoElementToIdMap.end()) |
| 355 return; | 355 return; |
| 356 m_idToPseudoElement.remove(iterator->value); | 356 m_idToPseudoElement.remove(iterator->value); |
| 357 m_pseudoElementToIdMap.remove(iterator); | 357 m_pseudoElementToIdMap.remove(iterator); |
| 358 } | 358 } |
| 359 | 359 |
| 360 } // namespace WebCore | 360 } // namespace WebCore |
| OLD | NEW |