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

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

Issue 308123010: Trigger computation of font size when crossing foreignObject boundary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « LayoutTests/svg/custom/foreignObject-font-size-on-zoom-expected.html ('k') | no next file » | no next file with comments »
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 9878f21af0ef2732cc3142665bc8aa5f5714481d..48d5360c4ddf3cbca9d2b831e5dfd36f7a6fbfc2 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -691,6 +691,11 @@ PassRefPtr<RenderStyle> StyleResolver::styleForElement(Element* element, RenderS
if (isHTMLBodyElement(*element))
document().textLinkColors().setTextColor(state.style()->color());
+ if (UNLIKELY(isSVGForeignObjectElement(*element))) {
fs 2014/06/02 16:07:10 Maybe add a (brief) comment about why this is done
+ state.fontBuilder().setFontDirty(true);
+ updateFont(state);
+ }
+
setAnimationUpdateIfNeeded(state, *element);
if (state.style()->hasViewportUnits())
« no previous file with comments | « LayoutTests/svg/custom/foreignObject-font-size-on-zoom-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698