| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 array->pushNumber(quad.p1().y()); | 227 array->pushNumber(quad.p1().y()); |
| 228 array->pushNumber(quad.p2().x()); | 228 array->pushNumber(quad.p2().x()); |
| 229 array->pushNumber(quad.p2().y()); | 229 array->pushNumber(quad.p2().y()); |
| 230 array->pushNumber(quad.p3().x()); | 230 array->pushNumber(quad.p3().x()); |
| 231 array->pushNumber(quad.p3().y()); | 231 array->pushNumber(quad.p3().y()); |
| 232 array->pushNumber(quad.p4().x()); | 232 array->pushNumber(quad.p4().x()); |
| 233 array->pushNumber(quad.p4().y()); | 233 array->pushNumber(quad.p4().y()); |
| 234 return array.release(); | 234 return array.release(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 PassRefPtr<InspectorObject> TimelineRecordFactory::createPaintData(const FloatQu
ad& quad, int layerRootNodeId) | 237 PassRefPtr<InspectorObject> TimelineRecordFactory::createPaintData(const FloatQu
ad& quad, long long layerRootNodeId) |
| 238 { | 238 { |
| 239 RefPtr<InspectorObject> data = InspectorObject::create(); | 239 RefPtr<InspectorObject> data = InspectorObject::create(); |
| 240 data->setArray("clip", createQuad(quad)); | 240 data->setArray("clip", createQuad(quad)); |
| 241 if (layerRootNodeId) | 241 if (layerRootNodeId) |
| 242 data->setNumber("layerRootNode", layerRootNodeId); | 242 data->setNumber("layerRootNode", layerRootNodeId); |
| 243 return data.release(); | 243 return data.release(); |
| 244 } | 244 } |
| 245 | 245 |
| 246 void TimelineRecordFactory::appendLayoutRoot(InspectorObject* data, const FloatQ
uad& quad, int rootNodeId) | 246 PassRefPtr<InspectorObject> TimelineRecordFactory::createRasterizeData(long long
layerRootNodeId) |
| 247 { |
| 248 RefPtr<InspectorObject> data = InspectorObject::create(); |
| 249 if (layerRootNodeId) |
| 250 data->setNumber("layerRootNode", layerRootNodeId); |
| 251 return data.release(); |
| 252 } |
| 253 |
| 254 void TimelineRecordFactory::appendLayoutRoot(InspectorObject* data, const FloatQ
uad& quad, long long rootNodeId) |
| 247 { | 255 { |
| 248 data->setArray("root", createQuad(quad)); | 256 data->setArray("root", createQuad(quad)); |
| 249 if (rootNodeId) | 257 if (rootNodeId) |
| 250 data->setNumber("rootNode", rootNodeId); | 258 data->setNumber("rootNode", rootNodeId); |
| 251 } | 259 } |
| 252 | 260 |
| 253 void TimelineRecordFactory::appendStyleRecalcDetails(InspectorObject* data, unsi
gned elementCount) | 261 void TimelineRecordFactory::appendStyleRecalcDetails(InspectorObject* data, unsi
gned elementCount) |
| 254 { | 262 { |
| 255 data->setNumber("elementCount", elementCount); | 263 data->setNumber("elementCount", elementCount); |
| 256 } | 264 } |
| 257 | 265 |
| 258 } // namespace WebCore | 266 } // namespace WebCore |
| 259 | 267 |
| OLD | NEW |