Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 1156143002: *** NOT FOR LANDING *** Text nodes should only inherit inheritable properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Just copy all SVG properties. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/dom/FirstLetterPseudoElement.cpp » ('j') | Source/core/style/ComputedStyle.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 6a3b2ac47f325aae8c9a7622a86f31013bde7b99..4d133423fba79219410c2fa05b99da5b2a32415d 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -898,7 +898,7 @@ PassRefPtr<ComputedStyle> StyleResolver::styleForText(Text* textNode)
Node* parentNode = LayoutTreeBuilderTraversal::parent(*textNode);
if (!parentNode || !parentNode->computedStyle())
return initialStyleForElement();
- return parentNode->mutableComputedStyle();
+ return ComputedStyle::createWithInheritableProperties(parentNode->computedStyleRef());
}
void StyleResolver::updateFont(StyleResolverState& state)
« no previous file with comments | « no previous file | Source/core/dom/FirstLetterPseudoElement.cpp » ('j') | Source/core/style/ComputedStyle.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698