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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLHRElement.cpp

Issue 2796183002: Introduce the nested namespace ::blink::cssvalue, start with CSSColorValue. (Closed)
Patch Set: Use the least possible namespace scoping when aliasing. Created 3 years, 8 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/html/HTMLFontElement.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 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2010 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 14 matching lines...) Expand all
25 #include "core/CSSPropertyNames.h" 25 #include "core/CSSPropertyNames.h"
26 #include "core/CSSValueKeywords.h" 26 #include "core/CSSValueKeywords.h"
27 #include "core/HTMLNames.h" 27 #include "core/HTMLNames.h"
28 #include "core/css/CSSColorValue.h" 28 #include "core/css/CSSColorValue.h"
29 #include "core/css/StylePropertySet.h" 29 #include "core/css/StylePropertySet.h"
30 #include "core/html/HTMLOptGroupElement.h" 30 #include "core/html/HTMLOptGroupElement.h"
31 #include "core/html/HTMLSelectElement.h" 31 #include "core/html/HTMLSelectElement.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 using namespace cssvalue;
35 using namespace HTMLNames; 36 using namespace HTMLNames;
36 37
37 inline HTMLHRElement::HTMLHRElement(Document& document) 38 inline HTMLHRElement::HTMLHRElement(Document& document)
38 : HTMLElement(hrTag, document) {} 39 : HTMLElement(hrTag, document) {}
39 40
40 DEFINE_NODE_FACTORY(HTMLHRElement) 41 DEFINE_NODE_FACTORY(HTMLHRElement)
41 42
42 bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const { 43 bool HTMLHRElement::isPresentationAttribute(const QualifiedName& name) const {
43 if (name == alignAttr || name == widthAttr || name == colorAttr || 44 if (name == alignAttr || name == widthAttr || name == colorAttr ||
44 name == noshadeAttr || name == sizeAttr) 45 name == noshadeAttr || name == sizeAttr)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 toHTMLSelectElement(insertionPoint)->hrInsertedOrRemoved(*this); 137 toHTMLSelectElement(insertionPoint)->hrInsertedOrRemoved(*this);
137 } else if (isHTMLOptGroupElement(*insertionPoint)) { 138 } else if (isHTMLOptGroupElement(*insertionPoint)) {
138 Node* parent = insertionPoint->parentNode(); 139 Node* parent = insertionPoint->parentNode();
139 if (isHTMLSelectElement(parent)) 140 if (isHTMLSelectElement(parent))
140 toHTMLSelectElement(parent)->hrInsertedOrRemoved(*this); 141 toHTMLSelectElement(parent)->hrInsertedOrRemoved(*this);
141 } 142 }
142 HTMLElement::removedFrom(insertionPoint); 143 HTMLElement::removedFrom(insertionPoint);
143 } 144 }
144 145
145 } // namespace blink 146 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLFontElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698