Summary: | Share inline style between cloned Nodes (copy on write.) | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||
Component: | DOM | Assignee: | Andreas Kling <kling> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | cmarcelo, macpherson, menard, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Andreas Kling
2012-08-30 06:02:06 PDT
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> |