Commit 6fb1d39a authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2010-09-07 Kwang Yul Seo <skyul@company100.net>

        Reviewed by Kent Tamura.

        Add ENABLE(INSPECTOR) guard in InspectorController::inspectorControllerForNode
        https://bugs.webkit.org/show_bug.cgi?id=45272

        Build fix.

        * inspector/InspectorController.h:
        (WebCore::InspectorController::inspectorControllerForNode):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@66869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4660b01e
2010-09-07 Kwang Yul Seo <skyul@company100.net>
Reviewed by Kent Tamura.
Add ENABLE(INSPECTOR) guard in InspectorController::inspectorControllerForNode
https://bugs.webkit.org/show_bug.cgi?id=45272
Build fix.
* inspector/InspectorController.h:
(WebCore::InspectorController::inspectorControllerForNode):
2010-09-07 Joerg Bornemann <joerg.bornemann@nokia.com>
 
Reviewed by Ariya Hidayat.
......@@ -433,12 +433,15 @@ inline void InspectorController::didModifyDOMAttr(Element* element)
inline InspectorController* InspectorController::inspectorControllerForNode(Node* node)
{
#if ENABLE(INSPECTOR)
if (Page* page = node->document()->page()) {
if (InspectorController* inspectorController = page->inspectorController()) {
if (inspectorController->hasFrontend())
return inspectorController;
}
}
#endif
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment