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

Unified Diff: Source/WebCore/css/CSSStyleSelector.cpp

Issue 10262008: Merge 114666 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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/fast/ruby/positioned-ruby-text-expected.txt ('k') | Source/WebCore/rendering/RenderRubyRun.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/CSSStyleSelector.cpp
===================================================================
--- Source/WebCore/css/CSSStyleSelector.cpp (revision 115608)
+++ Source/WebCore/css/CSSStyleSelector.cpp (working copy)
@@ -1943,6 +1943,12 @@
style->setDisplay(BLOCK);
}
+ // Ruby text does not support float or position. This might change with evolution of the specification.
+ if (e && e->hasTagName(rtTag)) {
+ style->setPosition(StaticPosition);
+ style->setFloating(NoFloat);
+ }
+
// Table headers with a text-align of auto will change the text-align to center.
if (e && e->hasTagName(thTag) && style->textAlign() == TAAUTO)
style->setTextAlign(CENTER);
« no previous file with comments | « LayoutTests/fast/ruby/positioned-ruby-text-expected.txt ('k') | Source/WebCore/rendering/RenderRubyRun.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698