Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
index ccdbb4711a1b58706b59d457b58e954487bbbb6a..5baf4c07819e329a017b5988ee41433da4d63875 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl |
@@ -79,6 +79,8 @@ class CORE_EXPORT ComputedStyleBase { |
{% endfor %} |
protected: |
+ // Constructor and destructor are protected so that only the parent class ComputedStyle |
+ // can instantiate this class. |
ALWAYS_INLINE ComputedStyleBase() : |
{% for field in fields %} |
{{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(not loop.last, ',')}} |