OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 case EDisplay::TableRowGroup: | 81 case EDisplay::TableRowGroup: |
82 case EDisplay::TableHeaderGroup: | 82 case EDisplay::TableHeaderGroup: |
83 case EDisplay::TableFooterGroup: | 83 case EDisplay::TableFooterGroup: |
84 case EDisplay::TableRow: | 84 case EDisplay::TableRow: |
85 case EDisplay::TableColumnGroup: | 85 case EDisplay::TableColumnGroup: |
86 case EDisplay::TableColumn: | 86 case EDisplay::TableColumn: |
87 case EDisplay::TableCell: | 87 case EDisplay::TableCell: |
88 case EDisplay::TableCaption: | 88 case EDisplay::TableCaption: |
89 return EDisplay::Block; | 89 return EDisplay::Block; |
90 case EDisplay::None: | 90 case EDisplay::None: |
91 ASSERT_NOT_REACHED(); | 91 NOTREACHED(); |
92 return display; | 92 return display; |
93 } | 93 } |
94 ASSERT_NOT_REACHED(); | 94 NOTREACHED(); |
95 return EDisplay::Block; | 95 return EDisplay::Block; |
96 } | 96 } |
97 | 97 |
98 static bool isOutermostSVGElement(const Element* element) { | 98 static bool isOutermostSVGElement(const Element* element) { |
99 return element && element->isSVGElement() && | 99 return element && element->isSVGElement() && |
100 toSVGElement(*element).isOutermostSVGSVGElement(); | 100 toSVGElement(*element).isOutermostSVGSVGElement(); |
101 } | 101 } |
102 | 102 |
103 // CSS requires text-decoration to be reset at each DOM element for | 103 // CSS requires text-decoration to be reset at each DOM element for |
104 // inline blocks, inline tables, shadow DOM crossings, floating elements, | 104 // inline blocks, inline tables, shadow DOM crossings, floating elements, |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 style.setDisplay(EDisplay::Block); | 506 style.setDisplay(EDisplay::Block); |
507 | 507 |
508 // Columns don't apply to svg text elements. | 508 // Columns don't apply to svg text elements. |
509 if (isSVGTextElement(*element)) | 509 if (isSVGTextElement(*element)) |
510 style.clearMultiCol(); | 510 style.clearMultiCol(); |
511 } | 511 } |
512 adjustStyleForAlignment(style, layoutParentStyle); | 512 adjustStyleForAlignment(style, layoutParentStyle); |
513 } | 513 } |
514 | 514 |
515 } // namespace blink | 515 } // namespace blink |
OLD | NEW |