OLD | NEW |
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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
6 * rights reserved. | 6 * rights reserved. |
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * | 10 * |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 DCHECK(IsFocused()); | 844 DCHECK(IsFocused()); |
845 return true; | 845 return true; |
846 } | 846 } |
847 | 847 |
848 bool Node::IsInert() const { | 848 bool Node::IsInert() const { |
849 const HTMLDialogElement* dialog = GetDocument().ActiveModalDialog(); | 849 const HTMLDialogElement* dialog = GetDocument().ActiveModalDialog(); |
850 if (dialog && this != GetDocument() && | 850 if (dialog && this != GetDocument() && |
851 (!CanParticipateInFlatTree() || | 851 (!CanParticipateInFlatTree() || |
852 !FlatTreeTraversal::ContainsIncludingPseudoElement(*dialog, *this))) | 852 !FlatTreeTraversal::ContainsIncludingPseudoElement(*dialog, *this))) |
853 return true; | 853 return true; |
854 return GetDocument().LocalOwner() && GetDocument().LocalOwner()->IsInert(); | 854 return GetDocument().GetFrame()->IsInert(); |
855 } | 855 } |
856 | 856 |
857 unsigned Node::NodeIndex() const { | 857 unsigned Node::NodeIndex() const { |
858 const Node* temp_node = previousSibling(); | 858 const Node* temp_node = previousSibling(); |
859 unsigned count = 0; | 859 unsigned count = 0; |
860 for (count = 0; temp_node; count++) | 860 for (count = 0; temp_node; count++) |
861 temp_node = temp_node->previousSibling(); | 861 temp_node = temp_node->previousSibling(); |
862 return count; | 862 return count; |
863 } | 863 } |
864 | 864 |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2623 if (node) { | 2623 if (node) { |
2624 std::stringstream stream; | 2624 std::stringstream stream; |
2625 node->PrintNodePathTo(stream); | 2625 node->PrintNodePathTo(stream); |
2626 LOG(INFO) << stream.str(); | 2626 LOG(INFO) << stream.str(); |
2627 } else { | 2627 } else { |
2628 LOG(INFO) << "Cannot showNodePath for <null>"; | 2628 LOG(INFO) << "Cannot showNodePath for <null>"; |
2629 } | 2629 } |
2630 } | 2630 } |
2631 | 2631 |
2632 #endif | 2632 #endif |
OLD | NEW |