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

Unified Diff: third_party/WebKit/WebCore/rendering/RenderFlexibleBox.cpp

Issue 21165: Revert the merge. Mac build is mysteriously broken. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
Index: third_party/WebKit/WebCore/rendering/RenderFlexibleBox.cpp
===================================================================
--- third_party/WebKit/WebCore/rendering/RenderFlexibleBox.cpp (revision 9383)
+++ third_party/WebKit/WebCore/rendering/RenderFlexibleBox.cpp (working copy)
@@ -224,9 +224,9 @@
// For overflow:scroll blocks, ensure we have both scrollbars in place always.
if (scrollsOverflow()) {
if (style()->overflowX() == OSCROLL)
- layer()->setHasHorizontalScrollbar(true);
+ m_layer->setHasHorizontalScrollbar(true);
if (style()->overflowY() == OSCROLL)
- layer()->setHasVerticalScrollbar(true);
+ m_layer->setHasVerticalScrollbar(true);
}
if (isHorizontal())
@@ -292,7 +292,7 @@
// Update our scrollbars if we're overflow:auto/scroll/hidden now that we know if
// we overflow or not.
if (hasOverflowClip())
- layer()->updateScrollInfoAfterLayout();
+ m_layer->updateScrollInfoAfterLayout();
// Repaint with our new bounds if they are different from our old bounds.
repainter.repaintAfterLayout();
@@ -410,13 +410,13 @@
while (child) {
if (child->isPositioned()) {
child->containingBlock()->insertPositionedObject(child);
- if (child->style()->hasStaticX()) {
+ if (child->hasStaticX()) {
if (style()->direction() == LTR)
- child->layer()->setStaticX(xPos);
- else child->layer()->setStaticX(width() - xPos);
+ child->setStaticX(xPos);
+ else child->setStaticX(width() - xPos);
}
- if (child->style()->hasStaticY())
- child->layer()->setStaticY(yPos);
+ if (child->hasStaticY())
+ child->setStaticY(yPos);
child = iterator.next();
continue;
}
@@ -801,14 +801,14 @@
if (child->isPositioned())
{
child->containingBlock()->insertPositionedObject(child);
- if (child->style()->hasStaticX()) {
+ if (child->hasStaticX()) {
if (style()->direction() == LTR)
- child->layer()->setStaticX(borderLeft()+paddingLeft());
+ child->setStaticX(borderLeft()+paddingLeft());
else
- child->layer()->setStaticX(borderRight()+paddingRight());
+ child->setStaticX(borderRight()+paddingRight());
}
- if (child->style()->hasStaticY())
- child->layer()->setStaticY(height());
+ if (child->hasStaticY())
+ child->setStaticY(height());
child = iterator.next();
continue;
}

Powered by Google App Engine
This is Rietveld 408576698