Cloning a Node shouldn't have to clone the inline style (if there is one) - we could share them until either one mutates.
Created attachment 161456 [details] Pätch
Comment on attachment 161456 [details] Pätch View in context: https://bugs.webkit.org/attachment.cgi?id=161456&action=review r=me > Source/WebCore/css/StylePropertySet.cpp:69 > +PassRefPtr<StylePropertySet> StylePropertySet::makeImmutable() const > +{ > + if (!isMutable()) > + return const_cast<StylePropertySet*>(this); > + return createImmutable(m_mutablePropertyVector->data(), m_mutablePropertyVector->size(), cssParserMode()); > +} Name does not really describe this function well. I don't have great ideas though, maybe copyIfNeeded() or similar?
Committed r127375: <http://trac.webkit.org/changeset/127375>