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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2258973002: Avoid LayoutFullScreen to be orthogonal writing-mode roots when reattached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline Created 4 years, 4 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 | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 56dbaadc81476b59741fea9b341ddb020ba49cbe..7941b5bc8e40e0d3c53f75701a43829dfc31e01d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1889,13 +1889,18 @@ void LayoutObject::propagateStyleToAnonymousChildren()
}
}
-void LayoutObject::setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle> style)
+void LayoutObject::setStyleWithWritingModeOf(PassRefPtr<ComputedStyle> style, LayoutObject* parent)
{
- if (parent())
- style->setWritingMode(parent()->styleRef().getWritingMode());
+ if (parent)
+ style->setWritingMode(parent->styleRef().getWritingMode());
setStyle(style);
}
+void LayoutObject::setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle> style)
+{
+ setStyleWithWritingModeOf(style, parent());
+}
+
void LayoutObject::addChildWithWritingModeOfParent(LayoutObject* newChild, LayoutObject* beforeChild)
{
if (newChild->mutableStyleRef().setWritingMode(styleRef().getWritingMode())
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698