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

Unified Diff: Source/core/layout/style/LayoutStyle.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/style/LayoutStyle.cpp
diff --git a/Source/core/layout/style/LayoutStyle.cpp b/Source/core/layout/style/LayoutStyle.cpp
index e7785d0602a70f124e9c430411684cb941e5bf10..fac327f5f9207f5474456e5fdefb507187108d2b 100644
--- a/Source/core/layout/style/LayoutStyle.cpp
+++ b/Source/core/layout/style/LayoutStyle.cpp
@@ -331,8 +331,8 @@ void LayoutStyle::removeCachedPseudoStyle(PseudoId pid)
if (!m_cachedPseudoStyles)
return;
for (size_t i = 0; i < m_cachedPseudoStyles->size(); ++i) {
- LayoutStyle* pseudoStyle = m_cachedPseudoStyles->at(i).get();
- if (pseudoStyle->styleType() == pid) {
+ const LayoutStyle& pseudoStyle = *m_cachedPseudoStyles->at(i);
+ if (pseudoStyle.styleType() == pid) {
m_cachedPseudoStyles->remove(i);
return;
}
« no previous file with comments | « Source/core/layout/style/LayoutStyle.h ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698