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

Side by Side Diff: Source/core/html/shadow/ContentDistributor.cpp

Issue 14763003: HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/inspector/InspectorCSSAgent.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 , m_validity(Undetermined) 182 , m_validity(Undetermined)
183 { 183 {
184 } 184 }
185 185
186 ContentDistributor::~ContentDistributor() 186 ContentDistributor::~ContentDistributor()
187 { 187 {
188 } 188 }
189 189
190 InsertionPoint* ContentDistributor::findInsertionPointFor(const Node* key) const 190 InsertionPoint* ContentDistributor::findInsertionPointFor(const Node* key) const
191 { 191 {
192 return m_nodeToInsertionPoint.get(key).get(); 192 return m_nodeToInsertionPoint.get(key);
193 } 193 }
194 194
195 void ContentDistributor::populate(Node* node, ContentDistribution& pool) 195 void ContentDistributor::populate(Node* node, ContentDistribution& pool)
196 { 196 {
197 if (!isActiveInsertionPoint(node)) { 197 if (!isActiveInsertionPoint(node)) {
198 pool.append(node); 198 pool.append(node);
199 return; 199 return;
200 } 200 }
201 201
202 InsertionPoint* insertionPoint = toInsertionPoint(node); 202 InsertionPoint* insertionPoint = toInsertionPoint(node);
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 invalidateDistribution(host); 430 invalidateDistribution(host);
431 } 431 }
432 432
433 void ContentDistributor::didShadowBoundaryChange(Element* host) 433 void ContentDistributor::didShadowBoundaryChange(Element* host)
434 { 434 {
435 setValidity(Undetermined); 435 setValidity(Undetermined);
436 invalidateDistribution(host); 436 invalidateDistribution(host);
437 } 437 }
438 438
439 } 439 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698