OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 } | 514 } |
515 | 515 |
516 void InspectorResourceAgent::didScheduleStyleRecalculation(Document* document) | 516 void InspectorResourceAgent::didScheduleStyleRecalculation(Document* document) |
517 { | 517 { |
518 if (!m_styleRecalculationInitiator) | 518 if (!m_styleRecalculationInitiator) |
519 m_styleRecalculationInitiator = buildInitiatorObject(document, FetchInit
iatorInfo()); | 519 m_styleRecalculationInitiator = buildInitiatorObject(document, FetchInit
iatorInfo()); |
520 } | 520 } |
521 | 521 |
522 PassRefPtr<TypeBuilder::Network::Initiator> InspectorResourceAgent::buildInitiat
orObject(Document* document, const FetchInitiatorInfo& initiatorInfo) | 522 PassRefPtr<TypeBuilder::Network::Initiator> InspectorResourceAgent::buildInitiat
orObject(Document* document, const FetchInitiatorInfo& initiatorInfo) |
523 { | 523 { |
524 RefPtr<ScriptCallStack> stackTrace = createScriptCallStack(ScriptCallStack::
maxCallStackSizeToCapture, true); | 524 RefPtrWillBeRawPtr<ScriptCallStack> stackTrace = createScriptCallStack(Scrip
tCallStack::maxCallStackSizeToCapture, true); |
525 if (stackTrace && stackTrace->size() > 0) { | 525 if (stackTrace && stackTrace->size() > 0) { |
526 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = TypeBuilder::N
etwork::Initiator::create() | 526 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = TypeBuilder::N
etwork::Initiator::create() |
527 .setType(TypeBuilder::Network::Initiator::Type::Script); | 527 .setType(TypeBuilder::Network::Initiator::Type::Script); |
528 initiatorObject->setStackTrace(stackTrace->buildInspectorArray()); | 528 initiatorObject->setStackTrace(stackTrace->buildInspectorArray()); |
529 return initiatorObject; | 529 return initiatorObject; |
530 } | 530 } |
531 | 531 |
532 if (document && document->scriptableDocumentParser()) { | 532 if (document && document->scriptableDocumentParser()) { |
533 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = TypeBuilder::N
etwork::Initiator::create() | 533 RefPtr<TypeBuilder::Network::Initiator> initiatorObject = TypeBuilder::N
etwork::Initiator::create() |
534 .setType(TypeBuilder::Network::Initiator::Type::Parser); | 534 .setType(TypeBuilder::Network::Initiator::Type::Parser); |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) | 818 InspectorResourceAgent::InspectorResourceAgent(InspectorPageAgent* pageAgent) |
819 : InspectorBaseAgent<InspectorResourceAgent>("Network") | 819 : InspectorBaseAgent<InspectorResourceAgent>("Network") |
820 , m_pageAgent(pageAgent) | 820 , m_pageAgent(pageAgent) |
821 , m_frontend(0) | 821 , m_frontend(0) |
822 , m_resourcesData(adoptPtr(new NetworkResourcesData())) | 822 , m_resourcesData(adoptPtr(new NetworkResourcesData())) |
823 , m_isRecalculatingStyle(false) | 823 , m_isRecalculatingStyle(false) |
824 { | 824 { |
825 } | 825 } |
826 | 826 |
827 } // namespace WebCore | 827 } // namespace WebCore |
OLD | NEW |