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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d73b9934519171e844f58849cb63c79acbd2bbd1 |
--- /dev/null |
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl |
@@ -0,0 +1,15 @@ |
+{% from 'macros.tmpl' import license %} |
+{{license()}} |
+ |
+#include "core/ComputedStyleBase.h" |
+ |
+namespace blink { |
+ |
+void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAtShadowBoundary isAtShadowBoundary) |
+{ |
+ {% for field in fields if field.property['inherited'] %} |
+ {{field.name}} = inheritParent.{{field.name}}; |
+ {% endfor %} |
+} |
+ |
+} // namespace blink |