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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl

Issue 2697953004: Add support for generating external types in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 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
Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
index 2f1fc578035e3504e31aaadef5564a9349624082..0279075420ed020b739aa1cce188f55b3d1585db 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
@@ -7,7 +7,10 @@
namespace blink {
struct SameSizeAsComputedStyleBase {
- unsigned m_bitfields[{{expected_total_field_bytes}}];
+ {% for type_name, fields_list in fields|rejectattr("size")|groupby('type_name') %}
+ {{type_name}} m_{{type_name}}[{{fields_list|length}}];
+ {% endfor %}
+ unsigned m_bitfields[{{expected_bitfield_bytes}}];
};
// If this fails, the packing algorithm in make_computed_style_base.py has
// failed to produce the optimal packed size. To fix, update the algorithm to

Powered by Google App Engine
This is Rietveld 408576698