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

Side by Side Diff: Source/core/rendering/RenderObject.cpp

Issue 669803002: Optimize for horizontal writing mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: w compile fix Created 6 years, 2 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
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 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after
1956 if (paintInvalidationContainer == this) 1956 if (paintInvalidationContainer == this)
1957 return; 1957 return;
1958 1958
1959 RenderObject* o = parent(); 1959 RenderObject* o = parent();
1960 if (!o) 1960 if (!o)
1961 return; 1961 return;
1962 1962
1963 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called. 1963 // FIXME: this should call offsetFromContainer to share code, but I'm not su re it's ever called.
1964 LayoutPoint centerPoint = roundedLayoutPoint(transformState.mappedPoint()); 1964 LayoutPoint centerPoint = roundedLayoutPoint(transformState.mappedPoint());
1965 if (mode & ApplyContainerFlip && o->isBox()) { 1965 if (mode & ApplyContainerFlip && o->isBox()) {
1966 if (o->style()->isFlippedBlocksWritingMode()) 1966 if (o->style()->slowIsFlippedBlocksWritingMode())
1967 transformState.move(toRenderBox(o)->flipForWritingModeIncludingColum ns(roundedLayoutPoint(transformState.mappedPoint())) - centerPoint); 1967 transformState.move(toRenderBox(o)->flipForWritingModeIncludingColum ns(roundedLayoutPoint(transformState.mappedPoint())) - centerPoint);
1968 mode &= ~ApplyContainerFlip; 1968 mode &= ~ApplyContainerFlip;
1969 } 1969 }
1970 1970
1971 transformState.move(o->columnOffset(roundedLayoutPoint(transformState.mapped Point()))); 1971 transformState.move(o->columnOffset(roundedLayoutPoint(transformState.mapped Point())));
1972 1972
1973 if (o->hasOverflowClip()) 1973 if (o->hasOverflowClip())
1974 transformState.move(-toRenderBox(o)->scrolledContentOffset()); 1974 transformState.move(-toRenderBox(o)->scrolledContentOffset());
1975 1975
1976 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, was Fixed, paintInvalidationState); 1976 o->mapLocalToContainer(paintInvalidationContainer, transformState, mode, was Fixed, paintInvalidationState);
(...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3141 { 3141 {
3142 if (object1) { 3142 if (object1) {
3143 const blink::RenderObject* root = object1; 3143 const blink::RenderObject* root = object1;
3144 while (root->parent()) 3144 while (root->parent())
3145 root = root->parent(); 3145 root = root->parent();
3146 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3146 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3147 } 3147 }
3148 } 3148 }
3149 3149
3150 #endif 3150 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698