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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleMultiColData.cpp

Issue 1681273003: Add CSS parser support for break-after, break-before and break-inside. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase master Created 4 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleMultiColData.h ('k') | no next file » | 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 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 17 matching lines...) Expand all
28 StyleMultiColData::StyleMultiColData() 28 StyleMultiColData::StyleMultiColData()
29 : m_width(0) 29 : m_width(0)
30 , m_count(ComputedStyle::initialColumnCount()) 30 , m_count(ComputedStyle::initialColumnCount())
31 , m_gap(0) 31 , m_gap(0)
32 , m_visitedLinkColumnRuleColor(StyleColor::currentColor()) 32 , m_visitedLinkColumnRuleColor(StyleColor::currentColor())
33 , m_autoWidth(true) 33 , m_autoWidth(true)
34 , m_autoCount(true) 34 , m_autoCount(true)
35 , m_normalGap(true) 35 , m_normalGap(true)
36 , m_fill(ComputedStyle::initialColumnFill()) 36 , m_fill(ComputedStyle::initialColumnFill())
37 , m_columnSpan(false) 37 , m_columnSpan(false)
38 , m_breakBefore(ComputedStyle::initialPageBreak())
39 , m_breakAfter(ComputedStyle::initialPageBreak())
40 , m_breakInside(ComputedStyle::initialPageBreak())
41 { 38 {
42 } 39 }
43 40
44 StyleMultiColData::StyleMultiColData(const StyleMultiColData& o) 41 StyleMultiColData::StyleMultiColData(const StyleMultiColData& o)
45 : RefCounted<StyleMultiColData>() 42 : RefCounted<StyleMultiColData>()
46 , m_width(o.m_width) 43 , m_width(o.m_width)
47 , m_count(o.m_count) 44 , m_count(o.m_count)
48 , m_gap(o.m_gap) 45 , m_gap(o.m_gap)
49 , m_rule(o.m_rule) 46 , m_rule(o.m_rule)
50 , m_visitedLinkColumnRuleColor(o.m_visitedLinkColumnRuleColor) 47 , m_visitedLinkColumnRuleColor(o.m_visitedLinkColumnRuleColor)
51 , m_autoWidth(o.m_autoWidth) 48 , m_autoWidth(o.m_autoWidth)
52 , m_autoCount(o.m_autoCount) 49 , m_autoCount(o.m_autoCount)
53 , m_normalGap(o.m_normalGap) 50 , m_normalGap(o.m_normalGap)
54 , m_fill(o.m_fill) 51 , m_fill(o.m_fill)
55 , m_columnSpan(o.m_columnSpan) 52 , m_columnSpan(o.m_columnSpan)
56 , m_breakBefore(o.m_breakBefore)
57 , m_breakAfter(o.m_breakAfter)
58 , m_breakInside(o.m_breakInside)
59 { 53 {
60 } 54 }
61 55
62 bool StyleMultiColData::operator==(const StyleMultiColData& o) const 56 bool StyleMultiColData::operator==(const StyleMultiColData& o) const
63 { 57 {
64 return m_width == o.m_width && m_count == o.m_count && m_gap == o.m_gap 58 return m_width == o.m_width && m_count == o.m_count && m_gap == o.m_gap
65 && m_rule == o.m_rule && m_visitedLinkColumnRuleColor == o.m_visitedLink ColumnRuleColor && m_breakBefore == o.m_breakBefore 59 && m_rule == o.m_rule && m_visitedLinkColumnRuleColor == o.m_visitedLink ColumnRuleColor
66 && m_autoWidth == o.m_autoWidth && m_autoCount == o.m_autoCount && m_nor malGap == o.m_normalGap 60 && m_autoWidth == o.m_autoWidth && m_autoCount == o.m_autoCount && m_nor malGap == o.m_normalGap
67 && m_fill == o.m_fill && m_columnSpan == o.m_columnSpan 61 && m_fill == o.m_fill && m_columnSpan == o.m_columnSpan;
68 && m_breakAfter == o.m_breakAfter && m_breakInside == o.m_breakInside;
69 } 62 }
70 63
71 } // namespace blink 64 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleMultiColData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698