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

Unified Diff: sky/engine/core/rendering/LayoutState.cpp

Issue 938193004: Remove dead position:relative code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/LayoutState.cpp
diff --git a/sky/engine/core/rendering/LayoutState.cpp b/sky/engine/core/rendering/LayoutState.cpp
index aa7da4522c64ba082f935ee72f46054f6a2127f6..44bdc049804c3073ba41d2864d899dd7558e276d 100644
--- a/sky/engine/core/rendering/LayoutState.cpp
+++ b/sky/engine/core/rendering/LayoutState.cpp
@@ -49,14 +49,6 @@ LayoutState::LayoutState(RenderBox& renderer, const LayoutSize& offset, bool con
{
renderer.view()->pushLayoutState(*this);
m_layoutOffset = m_next->m_layoutOffset + offset;
-
- if (renderer.isOutOfFlowPositioned()) {
- if (RenderObject* container = renderer.container()) {
- if (container->style()->hasInFlowPosition() && container->isRenderInline())
- m_layoutOffset += toRenderInline(container)->offsetForInFlowPositionedInline(renderer);
esprehn 2015/02/20 05:55:53 Isn't this position: absolute inside an inline?
ojan 2015/02/20 05:57:21 offsetForInFlowPositionedInline doesn't do anythin
- }
- }
-
// FIXME: <http://bugs.webkit.org/show_bug.cgi?id=13443> Apply control clip if present.
}
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698