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

Side by Side Diff: sky/engine/core/rendering/RenderObject.cpp

Issue 684383002: Delete a ton more dead vertical writing mode code. (Closed) Base URL: git@github.com:domokit/mojo.git@writingmode1
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* paintInvali dationContainer, TransformState& transformState, MapCoordinatesFlags mode, const PaintInvalidationState* paintInvalidationState) const 1990 void RenderObject::mapLocalToContainer(const RenderLayerModelObject* paintInvali dationContainer, TransformState& transformState, MapCoordinatesFlags mode, const PaintInvalidationState* paintInvalidationState) const
1991 { 1991 {
1992 if (paintInvalidationContainer == this) 1992 if (paintInvalidationContainer == this)
1993 return; 1993 return;
1994 1994
1995 RenderObject* o = parent(); 1995 RenderObject* o = parent();
1996 if (!o) 1996 if (!o)
1997 return; 1997 return;
1998 1998
1999 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called. 1999 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called.
2000 LayoutPoint centerPoint = roundedLayoutPoint(transformState.mappedPoint());
2001 if (mode & ApplyContainerFlip && o->isBox()) { 2000 if (mode & ApplyContainerFlip && o->isBox()) {
2002 if (o->style()->isFlippedBlocksWritingMode())
2003 transformState.move(toRenderBox(o)->flipForWritingModeIncludingColum ns(roundedLayoutPoint(transformState.mappedPoint())) - centerPoint);
2004 mode &= ~ApplyContainerFlip; 2001 mode &= ~ApplyContainerFlip;
2005 } 2002 }
2006 2003
2007 if (o->hasOverflowClip()) 2004 if (o->hasOverflowClip())
2008 transformState.move(-toRenderBox(o)->scrolledContentOffset()); 2005 transformState.move(-toRenderBox(o)->scrolledContentOffset());
2009 2006
2010 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, pai ntInvalidationState); 2007 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, pai ntInvalidationState);
2011 } 2008 }
2012 2009
2013 const RenderObject* RenderObject::pushMappingToContainer(const RenderLayerModelO bject* ancestorToStopAt, RenderGeometryMap& geometryMap) const 2010 const RenderObject* RenderObject::pushMappingToContainer(const RenderLayerModelO bject* ancestorToStopAt, RenderGeometryMap& geometryMap) const
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
2852 { 2849 {
2853 if (object1) { 2850 if (object1) {
2854 const blink::RenderObject* root = object1; 2851 const blink::RenderObject* root = object1;
2855 while (root->parent()) 2852 while (root->parent())
2856 root = root->parent(); 2853 root = root->parent();
2857 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 2854 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
2858 } 2855 }
2859 } 2856 }
2860 2857
2861 #endif 2858 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/core/rendering/RenderReplaced.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698