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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngine.cpp

Issue 2873433003: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleEngine.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleEngine.cpp b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
index 36e75476117687f322b3b31df95c9320ce9d1e8e..498d4182a5701692ed028900bcb7181e4dffacd8 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -1110,7 +1110,7 @@ bool StyleEngine::mediaQueryAffectedByViewportChange() {
const auto& results =
m_globalRuleSet.ruleFeatureSet().viewportDependentMediaQueryResults();
for (unsigned i = 0; i < results.size(); ++i) {
- if (evaluator.eval(results[i]->expression()) != results[i]->result())
+ if (evaluator.eval(results[i].expression()) != results[i].result())
return true;
}
return false;
@@ -1121,7 +1121,7 @@ bool StyleEngine::mediaQueryAffectedByDeviceChange() {
const auto& results =
m_globalRuleSet.ruleFeatureSet().deviceDependentMediaQueryResults();
for (unsigned i = 0; i < results.size(); ++i) {
- if (evaluator.eval(results[i]->expression()) != results[i]->result())
+ if (evaluator.eval(results[i].expression()) != results[i].result())
return true;
}
return false;
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSourceElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698