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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderBox.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 2336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2347 // 'staticX' should already have been set through layout of the pare nt. 2347 // 'staticX' should already have been set through layout of the pare nt.
2348 int staticPosition = layer()->staticX() - containerBlock->borderLeft (); 2348 int staticPosition = layer()->staticX() - containerBlock->borderLeft ();
2349 for (RenderObject* po = parent(); po && po != containerBlock; po = p o->parent()) { 2349 for (RenderObject* po = parent(); po && po != containerBlock; po = p o->parent()) {
2350 if (po->isBox()) 2350 if (po->isBox())
2351 staticPosition += toRenderBox(po)->x(); 2351 staticPosition += toRenderBox(po)->x();
2352 } 2352 }
2353 left.setValue(Fixed, staticPosition); 2353 left.setValue(Fixed, staticPosition);
2354 } else { 2354 } else {
2355 RenderObject* po = parent(); 2355 RenderObject* po = parent();
2356 // 'staticX' should already have been set through layout of the pare nt. 2356 // 'staticX' should already have been set through layout of the pare nt.
2357 int staticPosition = layer()->staticX() + containerWidth + toRenderB oxModelObject(containerBlock)->borderRight(); 2357 int staticPosition = layer()->staticX() + containerWidth + container Block->borderRight();
2358 for ( ; po && po != containerBlock; po = po->parent()) { 2358 for ( ; po && po != containerBlock; po = po->parent()) {
2359 if (po->isBox()) 2359 if (po->isBox())
2360 staticPosition += toRenderBox(po)->x(); 2360 staticPosition += toRenderBox(po)->x();
2361 } 2361 }
2362 right.setValue(Fixed, staticPosition); 2362 right.setValue(Fixed, staticPosition);
2363 } 2363 }
2364 } 2364 }
2365 2365
2366 /*-----------------------------------------------------------------------*\ 2366 /*-----------------------------------------------------------------------*\
2367 * 3. If 'left' or 'right' are 'auto', replace any 'auto' on 'margin-left' 2367 * 3. If 'left' or 'right' are 'auto', replace any 'auto' on 'margin-left'
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 #if ENABLE(SVG) 2797 #if ENABLE(SVG)
2798 2798
2799 TransformationMatrix RenderBox::localTransform() const 2799 TransformationMatrix RenderBox::localTransform() const
2800 { 2800 {
2801 return TransformationMatrix(1, 0, 0, 1, x(), y()); 2801 return TransformationMatrix(1, 0, 0, 1, x(), y());
2802 } 2802 }
2803 2803
2804 #endif 2804 #endif
2805 2805
2806 } // namespace WebCore 2806 } // namespace WebCore
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderBlock.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698