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

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

Issue 181693003: Have Document::markers() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 Document& document = this->document(); 288 Document& document = this->document();
289 289
290 if (hasEventTargetData()) { 290 if (hasEventTargetData()) {
291 clearEventTargetData(); 291 clearEventTargetData();
292 document.didClearTouchEventHandlers(this); 292 document.didClearTouchEventHandlers(this);
293 } 293 }
294 294
295 if (AXObjectCache* cache = document.existingAXObjectCache()) 295 if (AXObjectCache* cache = document.existingAXObjectCache())
296 cache->remove(this); 296 cache->remove(this);
297 297
298 document.markers()->removeMarkers(this); 298 document.markers().removeMarkers(this);
299 } 299 }
300 300
301 NodeRareData* Node::rareData() const 301 NodeRareData* Node::rareData() const
302 { 302 {
303 ASSERT_WITH_SECURITY_IMPLICATION(hasRareData()); 303 ASSERT_WITH_SECURITY_IMPLICATION(hasRareData());
304 return static_cast<NodeRareData*>(m_data.m_rareData); 304 return static_cast<NodeRareData*>(m_data.m_rareData);
305 } 305 }
306 306
307 NodeRareData& Node::ensureRareData() 307 NodeRareData& Node::ensureRareData()
308 { 308 {
(...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2556 node->showTreeForThis(); 2556 node->showTreeForThis();
2557 } 2557 }
2558 2558
2559 void showNodePath(const WebCore::Node* node) 2559 void showNodePath(const WebCore::Node* node)
2560 { 2560 {
2561 if (node) 2561 if (node)
2562 node->showNodePathForThis(); 2562 node->showNodePathForThis();
2563 } 2563 }
2564 2564
2565 #endif 2565 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentMarkerControllerTest.cpp ('k') | Source/core/editing/CompositeEditCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698