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

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

Issue 2837023005: Move MediaQuery classes off BlinkGC heap (Closed)
Patch Set: fix Created 3 years, 8 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 81a37da9eb1c03386ddb0cfd0e2f5c546f5220e4..1e858e67177c0fe10168c8155ba8f76d248d01d6 100644
--- a/third_party/WebKit/Source/core/dom/StyleEngine.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleEngine.cpp
@@ -1136,7 +1136,7 @@ bool StyleEngine::MediaQueryAffectedByViewportChange() {
const auto& results =
global_rule_set_.GetRuleFeatureSet().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;
@@ -1147,7 +1147,7 @@ bool StyleEngine::MediaQueryAffectedByDeviceChange() {
const auto& results =
global_rule_set_.GetRuleFeatureSet().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