Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: Source/core/dom/Node.cpp

Issue 325143002: Oilpan: Prepare moving inspector script related classes to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node = node->parentOrShadowHostNode()) 694 for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node = node->parentOrShadowHostNode())
695 node->setChildNeedsDistributionRecalc(); 695 node->setChildNeedsDistributionRecalc();
696 document().scheduleRenderTreeUpdateIfNeeded(); 696 document().scheduleRenderTreeUpdateIfNeeded();
697 } 697 }
698 698
699 namespace { 699 namespace {
700 700
701 PassRefPtr<JSONArray> jsStackAsJSONArray() 701 PassRefPtr<JSONArray> jsStackAsJSONArray()
702 { 702 {
703 RefPtr<JSONArray> jsonArray = JSONArray::create(); 703 RefPtr<JSONArray> jsonArray = JSONArray::create();
704 RefPtr<ScriptCallStack> stack = createScriptCallStack(10); 704 RefPtrWillBeRawPtr<ScriptCallStack> stack = createScriptCallStack(10);
705 if (!stack) 705 if (!stack)
706 return jsonArray.release(); 706 return jsonArray.release();
707 for (size_t i = 0; i < stack->size(); i++) 707 for (size_t i = 0; i < stack->size(); i++)
708 jsonArray->pushString(stack->at(i).functionName()); 708 jsonArray->pushString(stack->at(i).functionName());
709 return jsonArray.release(); 709 return jsonArray.release();
710 } 710 }
711 711
712 PassRefPtr<JSONObject> jsonObjectForStyleInvalidation(unsigned nodeCount, const Node* rootNode) 712 PassRefPtr<JSONObject> jsonObjectForStyleInvalidation(unsigned nodeCount, const Node* rootNode)
713 { 713 {
714 RefPtr<JSONObject> jsonObject = JSONObject::create(); 714 RefPtr<JSONObject> jsonObject = JSONObject::create();
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 node->showTreeForThis(); 2596 node->showTreeForThis();
2597 } 2597 }
2598 2598
2599 void showNodePath(const WebCore::Node* node) 2599 void showNodePath(const WebCore::Node* node)
2600 { 2600 {
2601 if (node) 2601 if (node)
2602 node->showNodePathForThis(); 2602 node->showNodePathForThis();
2603 } 2603 }
2604 2604
2605 #endif 2605 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698