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

Side by Side Diff: Source/core/rendering/style/StyleGridData.cpp

Issue 148293008: [CSS Grid Layout] Add support to place items using named grid lines (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New approach Created 6 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) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 15 matching lines...) Expand all
26 #include "config.h" 26 #include "config.h"
27 #include "core/rendering/style/StyleGridData.h" 27 #include "core/rendering/style/StyleGridData.h"
28 28
29 #include "core/rendering/style/RenderStyle.h" 29 #include "core/rendering/style/RenderStyle.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 StyleGridData::StyleGridData() 33 StyleGridData::StyleGridData()
34 : m_gridTemplateColumns(RenderStyle::initialGridTemplateColumns()) 34 : m_gridTemplateColumns(RenderStyle::initialGridTemplateColumns())
35 , m_gridTemplateRows(RenderStyle::initialGridTemplateRows()) 35 , m_gridTemplateRows(RenderStyle::initialGridTemplateRows())
36 , m_namedGridColumnLines(RenderStyle::initialNamedGridColumnLines())
37 , m_namedGridRowLines(RenderStyle::initialNamedGridRowLines())
38 , m_orderedNamedGridColumnLines(RenderStyle::initialOrderedNamedGridColumnLi nes()) 36 , m_orderedNamedGridColumnLines(RenderStyle::initialOrderedNamedGridColumnLi nes())
39 , m_orderedNamedGridRowLines(RenderStyle::initialOrderedNamedGridRowLines()) 37 , m_orderedNamedGridRowLines(RenderStyle::initialOrderedNamedGridRowLines())
40 , m_gridAutoFlow(RenderStyle::initialGridAutoFlow()) 38 , m_gridAutoFlow(RenderStyle::initialGridAutoFlow())
41 , m_gridAutoRows(RenderStyle::initialGridAutoRows()) 39 , m_gridAutoRows(RenderStyle::initialGridAutoRows())
42 , m_gridAutoColumns(RenderStyle::initialGridAutoColumns()) 40 , m_gridAutoColumns(RenderStyle::initialGridAutoColumns())
43 , m_namedGridArea(RenderStyle::initialNamedGridArea()) 41 , m_namedGridArea(RenderStyle::initialNamedGridArea())
44 , m_namedGridAreaRowCount(RenderStyle::initialNamedGridAreaCount()) 42 , m_namedGridAreaRowCount(RenderStyle::initialNamedGridAreaCount())
45 , m_namedGridAreaColumnCount(RenderStyle::initialNamedGridAreaCount()) 43 , m_namedGridAreaColumnCount(RenderStyle::initialNamedGridAreaCount())
46 { 44 {
47 } 45 }
48 46
49 StyleGridData::StyleGridData(const StyleGridData& o) 47 StyleGridData::StyleGridData(const StyleGridData& o)
50 : RefCounted<StyleGridData>() 48 : RefCounted<StyleGridData>()
51 , m_gridTemplateColumns(o.m_gridTemplateColumns) 49 , m_gridTemplateColumns(o.m_gridTemplateColumns)
52 , m_gridTemplateRows(o.m_gridTemplateRows) 50 , m_gridTemplateRows(o.m_gridTemplateRows)
53 , m_namedGridColumnLines(o.m_namedGridColumnLines)
54 , m_namedGridRowLines(o.m_namedGridRowLines)
55 , m_orderedNamedGridColumnLines(o.m_orderedNamedGridColumnLines) 51 , m_orderedNamedGridColumnLines(o.m_orderedNamedGridColumnLines)
56 , m_orderedNamedGridRowLines(o.m_orderedNamedGridRowLines) 52 , m_orderedNamedGridRowLines(o.m_orderedNamedGridRowLines)
57 , m_gridAutoFlow(o.m_gridAutoFlow) 53 , m_gridAutoFlow(o.m_gridAutoFlow)
58 , m_gridAutoRows(o.m_gridAutoRows) 54 , m_gridAutoRows(o.m_gridAutoRows)
59 , m_gridAutoColumns(o.m_gridAutoColumns) 55 , m_gridAutoColumns(o.m_gridAutoColumns)
60 , m_namedGridArea(o.m_namedGridArea) 56 , m_namedGridArea(o.m_namedGridArea)
61 , m_namedGridAreaRowCount(o.m_namedGridAreaRowCount) 57 , m_namedGridAreaRowCount(o.m_namedGridAreaRowCount)
62 , m_namedGridAreaColumnCount(o.m_namedGridAreaColumnCount) 58 , m_namedGridAreaColumnCount(o.m_namedGridAreaColumnCount)
63 { 59 {
64 } 60 }
65 61
66 } // namespace WebCore 62 } // namespace WebCore
67 63
OLDNEW
« Source/core/rendering/RenderGrid.cpp ('K') | « Source/core/rendering/style/StyleGridData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698