forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share inline style between cloned Nodes (copy on write.)
<http://webkit.org/b/95451> Reviewed by Antti Koivisto. When cloning a Node, use an immutable StylePropertySet for the new Node's inline style. If the old Node already had an immutable inline style, we now reuse that, avoiding a copy. Copying is deferred until mutation (either via CSSOM or setting of the style attribute.) * dom/ElementAttributeData.cpp: (WebCore::ElementAttributeData::cloneDataFrom): * css/StylePropertySet.h: * css/StylePropertySet.cpp: (WebCore::StylePropertySet::immutableCopyIfNeeded): Added. Simply returns 'this' if the object is already immutable, otherwise creates a new one. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Andreas Kling
committed
Sep 1, 2012
1 parent
0e9749a
commit 2841f83
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters