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

Side by Side Diff: Source/core/inspector/InspectorDOMAgent.cpp

Issue 476223003: Use tighter typing for Document::ownerElement() return value (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 return; 1824 return;
1825 1825
1826 // Re-push document once it is loaded. 1826 // Re-push document once it is loaded.
1827 discardFrontendBindings(); 1827 discardFrontendBindings();
1828 if (enabled()) 1828 if (enabled())
1829 m_frontend->documentUpdated(); 1829 m_frontend->documentUpdated();
1830 } 1830 }
1831 1831
1832 void InspectorDOMAgent::invalidateFrameOwnerElement(LocalFrame* frame) 1832 void InspectorDOMAgent::invalidateFrameOwnerElement(LocalFrame* frame)
1833 { 1833 {
1834 Element* frameOwner = frame->document()->ownerElement(); 1834 HTMLFrameOwnerElement* frameOwner = frame->document()->ownerElement();
1835 if (!frameOwner) 1835 if (!frameOwner)
1836 return; 1836 return;
1837 1837
1838 int frameOwnerId = m_documentNodeToIdMap->get(frameOwner); 1838 int frameOwnerId = m_documentNodeToIdMap->get(frameOwner);
1839 if (!frameOwnerId) 1839 if (!frameOwnerId)
1840 return; 1840 return;
1841 1841
1842 // Re-add frame owner element together with its new children. 1842 // Re-add frame owner element together with its new children.
1843 int parentId = m_documentNodeToIdMap->get(innerParentNode(frameOwner)); 1843 int parentId = m_documentNodeToIdMap->get(innerParentNode(frameOwner));
1844 m_frontend->childNodeRemoved(parentId, frameOwnerId); 1844 m_frontend->childNodeRemoved(parentId, frameOwnerId);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
2195 visitor->trace(m_searchResults); 2195 visitor->trace(m_searchResults);
2196 #endif 2196 #endif
2197 visitor->trace(m_history); 2197 visitor->trace(m_history);
2198 visitor->trace(m_domEditor); 2198 visitor->trace(m_domEditor);
2199 visitor->trace(m_listener); 2199 visitor->trace(m_listener);
2200 InspectorBaseAgent::trace(visitor); 2200 InspectorBaseAgent::trace(visitor);
2201 } 2201 }
2202 2202
2203 } // namespace blink 2203 } // namespace blink
2204 2204
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBodyElement.cpp ('k') | Source/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698