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

Unified Diff: WebCore/rendering/RenderBox.cpp

Issue 5661001: Merge 73245 - 2010-12-02 Aaron Boodman <aa@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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 | « WebCore/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/rendering/RenderBox.cpp
===================================================================
--- WebCore/rendering/RenderBox.cpp (revision 73385)
+++ WebCore/rendering/RenderBox.cpp (working copy)
@@ -306,23 +306,24 @@
// Set the text color if we're the body.
if (isBodyRenderer)
document()->setTextColor(style()->visitedDependentColor(CSSPropertyColor));
-
- if ((isRootRenderer || isBodyRenderer) && (!oldStyle || oldStyle->writingMode() != style()->writingMode() || oldStyle->direction() != style()->direction())) {
+
+ if (isRootRenderer || isBodyRenderer) {
// Propagate the new writing mode and direction up to the RenderView.
RenderView* viewRenderer = view();
RenderStyle* viewStyle = viewRenderer->style();
- if (isRootRenderer || !document()->directionSetOnDocumentElement()) {
+ if (viewStyle->direction() != style()->direction() && (isRootRenderer || !document()->directionSetOnDocumentElement())) {
viewStyle->setDirection(style()->direction());
if (isBodyRenderer)
document()->documentElement()->renderer()->style()->setDirection(style()->direction());
+ setNeedsLayoutAndPrefWidthsRecalc();
}
-
- if (isRootRenderer || !document()->writingModeSetOnDocumentElement()) {
+
+ if (viewStyle->writingMode() != style()->writingMode() && (isRootRenderer || !document()->writingModeSetOnDocumentElement())) {
viewStyle->setWritingMode(style()->writingMode());
if (isBodyRenderer)
document()->documentElement()->renderer()->style()->setWritingMode(style()->writingMode());
+ setNeedsLayoutAndPrefWidthsRecalc();
}
- setNeedsLayoutAndPrefWidthsRecalc();
}
}
« no previous file with comments | « WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698