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

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

Issue 2722313007: Remove some unnecessary using namespaces and add include guards (Closed)
Patch Set: Created 3 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) 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 10 matching lines...) Expand all
21 * 21 *
22 */ 22 */
23 23
24 #include "core/layout/LayoutFieldset.h" 24 #include "core/layout/LayoutFieldset.h"
25 25
26 #include "core/CSSPropertyNames.h" 26 #include "core/CSSPropertyNames.h"
27 #include "core/HTMLNames.h" 27 #include "core/HTMLNames.h"
28 #include "core/html/HTMLLegendElement.h" 28 #include "core/html/HTMLLegendElement.h"
29 #include "core/paint/FieldsetPainter.h" 29 #include "core/paint/FieldsetPainter.h"
30 30
31 using namespace std;
32
33 namespace blink { 31 namespace blink {
34 32
35 using namespace HTMLNames; 33 using namespace HTMLNames;
36 34
37 LayoutFieldset::LayoutFieldset(Element* element) : LayoutBlockFlow(element) {} 35 LayoutFieldset::LayoutFieldset(Element* element) : LayoutBlockFlow(element) {}
38 36
39 void LayoutFieldset::computePreferredLogicalWidths() { 37 void LayoutFieldset::computePreferredLogicalWidths() {
40 LayoutBlockFlow::computePreferredLogicalWidths(); 38 LayoutBlockFlow::computePreferredLogicalWidths();
41 if (LayoutBox* legend = findInFlowLegend()) { 39 if (LayoutBox* legend = findInFlowLegend()) {
42 int legendMinWidth = legend->minPreferredLogicalWidth().toInt(); 40 int legendMinWidth = legend->minPreferredLogicalWidth().toInt();
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 const LayoutPoint& paintOffset) const { 152 const LayoutPoint& paintOffset) const {
155 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset); 153 FieldsetPainter(*this).paintBoxDecorationBackground(paintInfo, paintOffset);
156 } 154 }
157 155
158 void LayoutFieldset::paintMask(const PaintInfo& paintInfo, 156 void LayoutFieldset::paintMask(const PaintInfo& paintInfo,
159 const LayoutPoint& paintOffset) const { 157 const LayoutPoint& paintOffset) const {
160 FieldsetPainter(*this).paintMask(paintInfo, paintOffset); 158 FieldsetPainter(*this).paintMask(paintInfo, paintOffset);
161 } 159 }
162 160
163 } // namespace blink 161 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/FloatingObjects.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698