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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutFieldset.cpp

Issue 1581173003: Allow to set display "inline" on legend element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crash and modify test case Created 4 years, 11 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/css/resolver/StyleAdjuster.cpp ('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 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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 return legend; 129 return legend;
130 } 130 }
131 131
132 LayoutBox* LayoutFieldset::findInFlowLegend() const 132 LayoutBox* LayoutFieldset::findInFlowLegend() const
133 { 133 {
134 for (LayoutObject* legend = firstChild(); legend; legend = legend->nextSibli ng()) { 134 for (LayoutObject* legend = firstChild(); legend; legend = legend->nextSibli ng()) {
135 if (legend->isFloatingOrOutOfFlowPositioned()) 135 if (legend->isFloatingOrOutOfFlowPositioned())
136 continue; 136 continue;
137 137
138 if (isHTMLLegendElement(legend->node())) 138 if (isHTMLLegendElement(legend->node())) {
139 return toLayoutBox(legend); 139 if (legend->isBox())
140 return toLayoutBox(legend);
141 }
140 } 142 }
141 return nullptr; 143 return nullptr;
142 } 144 }
143 145
144 void LayoutFieldset::paintBoxDecorationBackground(const PaintInfo& paintInfo, co nst LayoutPoint& paintOffset) const 146 void LayoutFieldset::paintBoxDecorationBackground(const PaintInfo& paintInfo, co nst LayoutPoint& paintOffset) const
145 { 147 {
146 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); 148 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset);
147 } 149 }
148 150
149 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const 151 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, const LayoutPoint& pa intOffset) const
150 { 152 {
151 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); 153 FieldsetPainter(*this).paintMask(paintInfo, paintOffset);
152 } 154 }
153 155
154 } // namespace blink 156 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698