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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutInline.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) 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, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
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 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2394 toLayoutInline(container)->offsetForInFlowPositionedInline(*this)); 2394 toLayoutInline(container)->offsetForInFlowPositionedInline(*this));
2395 } else if (styleToUse.hasInFlowPosition() && layer()) { 2395 } else if (styleToUse.hasInFlowPosition() && layer()) {
2396 // Apply the relative position offset when invalidating a rectangle. The 2396 // Apply the relative position offset when invalidating a rectangle. The
2397 // layer is translated, but the layout box isn't, so we need to do this to 2397 // layer is translated, but the layout box isn't, so we need to do this to
2398 // get the right dirty rect. Since this is called from 2398 // get the right dirty rect. Since this is called from
2399 // LayoutObject::setStyle, the relative position flag on the LayoutObject 2399 // LayoutObject::setStyle, the relative position flag on the LayoutObject
2400 // has been cleared, so use the one on the style(). 2400 // has been cleared, so use the one on the style().
2401 containerOffset.move(layer()->offsetForInFlowPosition()); 2401 containerOffset.move(layer()->offsetForInFlowPosition());
2402 } 2402 }
2403 2403
2404 bool preserve3D = container->style()->preserves3D() || style()->preserves3D(); 2404 bool preserve3D = container->style()->preserves3D();
2405 2405
2406 TransformState::TransformAccumulation accumulation = 2406 TransformState::TransformAccumulation accumulation =
2407 preserve3D ? TransformState::AccumulateTransform 2407 preserve3D ? TransformState::AccumulateTransform
2408 : TransformState::FlattenTransform; 2408 : TransformState::FlattenTransform;
2409 2409
2410 if (skipInfo.filterSkipped()) { 2410 if (skipInfo.filterSkipped()) {
2411 inflateVisualRectForFilterUnderContainer(transformState, *container, 2411 inflateVisualRectForFilterUnderContainer(transformState, *container,
2412 ancestor); 2412 ancestor);
2413 } 2413 }
2414 2414
(...skipping 3335 matching lines...) Expand 10 before | Expand all | Expand 10 after
5750 5750
5751 void LayoutBox::MutableForPainting:: 5751 void LayoutBox::MutableForPainting::
5752 savePreviousContentBoxSizeAndLayoutOverflowRect() { 5752 savePreviousContentBoxSizeAndLayoutOverflowRect() {
5753 auto& rareData = layoutBox().ensureRareData(); 5753 auto& rareData = layoutBox().ensureRareData();
5754 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true; 5754 rareData.m_hasPreviousContentBoxSizeAndLayoutOverflowRect = true;
5755 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size(); 5755 rareData.m_previousContentBoxSize = layoutBox().contentBoxRect().size();
5756 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect(); 5756 rareData.m_previousLayoutOverflowRect = layoutBox().layoutOverflowRect();
5757 } 5757 }
5758 5758
5759 } // namespace blink 5759 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698