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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2744743003: Add support for flattening in GeometryMapper. (Closed)
Patch Set: none Created 3 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
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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 TransformState& transformState, 1204 TransformState& transformState,
1205 VisualRectFlags visualRectFlags) const { 1205 VisualRectFlags visualRectFlags) const {
1206 if (ancestor == this) 1206 if (ancestor == this)
1207 return true; 1207 return true;
1208 1208
1209 LayoutObject* container = this->container(); 1209 LayoutObject* container = this->container();
1210 ASSERT(container == parent()); 1210 ASSERT(container == parent());
1211 if (!container) 1211 if (!container)
1212 return true; 1212 return true;
1213 1213
1214 bool preserve3D = container->style()->preserves3D() || style()->preserves3D(); 1214 bool preserve3D = container->style()->preserves3D();
1215 1215
1216 TransformState::TransformAccumulation accumulation = 1216 TransformState::TransformAccumulation accumulation =
1217 preserve3D ? TransformState::AccumulateTransform 1217 preserve3D ? TransformState::AccumulateTransform
1218 : TransformState::FlattenTransform; 1218 : TransformState::FlattenTransform;
1219 1219
1220 if (style()->hasInFlowPosition() && layer()) { 1220 if (style()->hasInFlowPosition() && layer()) {
1221 // Apply the in-flow position offset when invalidating a rectangle. The 1221 // Apply the in-flow position offset when invalidating a rectangle. The
1222 // layer is translated, but the layout box isn't, so we need to do this to 1222 // layer is translated, but the layout box isn't, so we need to do this to
1223 // get the right dirty rect. Since this is called from LayoutObject:: 1223 // get the right dirty rect. Since this is called from LayoutObject::
1224 // setStyle, the relative position flag on the LayoutObject has been 1224 // setStyle, the relative position flag on the LayoutObject has been
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason); 1534 paintInvalidator.invalidateDisplayItemClient(*box, invalidationReason);
1535 } 1535 }
1536 1536
1537 // TODO(lunalu): Not to just dump 0, 0 as the x and y here 1537 // TODO(lunalu): Not to just dump 0, 0 as the x and y here
1538 LayoutRect LayoutInline::debugRect() const { 1538 LayoutRect LayoutInline::debugRect() const {
1539 IntRect linesBox = enclosingIntRect(linesBoundingBox()); 1539 IntRect linesBox = enclosingIntRect(linesBoundingBox());
1540 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height())); 1540 return LayoutRect(IntRect(0, 0, linesBox.width(), linesBox.height()));
1541 } 1541 }
1542 1542
1543 } // namespace blink 1543 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698