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

Unified Diff: Source/core/css/LayoutStyleCSSValueMapping.cpp

Issue 948343003: Move rendering/RenderGrid to layout/LayoutGrid (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/FirstLetterPseudoElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/LayoutStyleCSSValueMapping.cpp
diff --git a/Source/core/css/LayoutStyleCSSValueMapping.cpp b/Source/core/css/LayoutStyleCSSValueMapping.cpp
index 1fbd2e4f20e248e8d29feb6a1815beeb7d5daa74..c79d96a88eaa361374e8c1d9f17bda1dfee4650d 100644
--- a/Source/core/css/LayoutStyleCSSValueMapping.cpp
+++ b/Source/core/css/LayoutStyleCSSValueMapping.cpp
@@ -44,13 +44,13 @@
#include "core/css/Pair.h"
#include "core/css/Rect.h"
#include "core/layout/LayoutBox.h"
+#include "core/layout/LayoutGrid.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/style/ContentData.h"
#include "core/layout/style/LayoutStyle.h"
#include "core/layout/style/PathStyleMotionPath.h"
#include "core/layout/style/ShadowList.h"
#include "core/rendering/RenderBlock.h"
-#include "core/rendering/RenderGrid.h"
#include "platform/LengthFunctions.h"
namespace blink {
@@ -571,11 +571,11 @@ static PassRefPtrWillBeRawPtr<CSSValue> valueForGridTrackList(GridTrackSizingDir
{
const Vector<GridTrackSize>& trackSizes = direction == ForColumns ? style.gridTemplateColumns() : style.gridTemplateRows();
const OrderedNamedGridLines& orderedNamedGridLines = direction == ForColumns ? style.orderedNamedGridColumnLines() : style.orderedNamedGridRowLines();
- bool isRenderGrid = renderer && renderer->isRenderGrid();
+ bool isLayoutGrid = renderer && renderer->isLayoutGrid();
// Handle the 'none' case.
bool trackListIsEmpty = trackSizes.isEmpty();
- if (isRenderGrid && trackListIsEmpty) {
+ if (isLayoutGrid && trackListIsEmpty) {
// For grids we should consider every listed track, whether implicitly or explicitly created. If we don't have
// any explicit track and there are no children then there are no implicit tracks. We cannot simply check the
// number of rows/columns in our internal grid representation because it's always at least 1x1 (see r143331).
@@ -588,8 +588,8 @@ static PassRefPtrWillBeRawPtr<CSSValue> valueForGridTrackList(GridTrackSizingDir
}
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
- if (isRenderGrid) {
- const Vector<LayoutUnit>& trackPositions = direction == ForColumns ? toRenderGrid(renderer)->columnPositions() : toRenderGrid(renderer)->rowPositions();
+ if (isLayoutGrid) {
+ const Vector<LayoutUnit>& trackPositions = direction == ForColumns ? toLayoutGrid(renderer)->columnPositions() : toLayoutGrid(renderer)->rowPositions();
// There are at least #tracks + 1 grid lines (trackPositions). Apart from that, the grid container can generate implicit grid tracks,
// so we'll have more trackPositions than trackSizes as the latter only contain the explicit grid.
ASSERT(trackPositions.size() - 1 >= trackSizes.size());
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/FirstLetterPseudoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698