Chromium Code Reviews| Index: Source/core/style/ComputedStyle.cpp |
| diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp |
| index c01ddf928a2c652f6b556d64357ec39ae634dc64..a64522101f3a919fd330c99e52fed73263e8b6fc 100644 |
| --- a/Source/core/style/ComputedStyle.cpp |
| +++ b/Source/core/style/ComputedStyle.cpp |
| @@ -94,6 +94,15 @@ PassRefPtr<ComputedStyle> ComputedStyle::clone(const ComputedStyle& other) |
| return adoptRef(new ComputedStyle(other)); |
| } |
| +PassRefPtr<ComputedStyle> ComputedStyle::createWithInheritableProperties(const ComputedStyle& parentStyle) |
| +{ |
| + RefPtr<ComputedStyle> newStyle = ComputedStyle::create(); |
| + newStyle->inheritFrom(parentStyle); |
| + newStyle->inheritUnicodeBidiFrom(parentStyle); |
|
mstensho (USE GERRIT)
2015/05/29 13:13:42
Would be great to get rid of inheritance of non-in
|
| + newStyle->m_svgStyle = parentStyle.m_svgStyle; |
| + return newStyle.release(); |
| +} |
| + |
| ALWAYS_INLINE ComputedStyle::ComputedStyle() |
| : m_box(initialStyle()->m_box) |
| , visual(initialStyle()->visual) |