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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 HTMLElement::parseAttribute(name, oldValue, value); 62 HTMLElement::parseAttribute(name, oldValue, value);
63 63
64 if (name == disabledAttr) { 64 if (name == disabledAttr) {
65 pseudoStateChanged(CSSSelector::PseudoDisabled); 65 pseudoStateChanged(CSSSelector::PseudoDisabled);
66 pseudoStateChanged(CSSSelector::PseudoEnabled); 66 pseudoStateChanged(CSSSelector::PseudoEnabled);
67 } else if (name == labelAttr) { 67 } else if (name == labelAttr) {
68 updateGroupLabel(); 68 updateGroupLabel();
69 } 69 }
70 } 70 }
71 71
72 void HTMLOptGroupElement::attach(const AttachContext& context) 72 void HTMLOptGroupElement::attachLayoutTree(const AttachContext& context)
73 { 73 {
74 if (context.resolvedStyle) { 74 if (context.resolvedStyle) {
75 ASSERT(!m_style || m_style == context.resolvedStyle); 75 ASSERT(!m_style || m_style == context.resolvedStyle);
76 m_style = context.resolvedStyle; 76 m_style = context.resolvedStyle;
77 } 77 }
78 HTMLElement::attach(context); 78 HTMLElement::attachLayoutTree(context);
79 } 79 }
80 80
81 void HTMLOptGroupElement::detach(const AttachContext& context) 81 void HTMLOptGroupElement::detach(const AttachContext& context)
82 { 82 {
83 m_style.clear(); 83 m_style.clear();
84 HTMLElement::detach(context); 84 HTMLElement::detach(context);
85 } 85 }
86 86
87 bool HTMLOptGroupElement::supportsFocus() const 87 bool HTMLOptGroupElement::supportsFocus() const
88 { 88 {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 label.setTextContent(labelText); 193 label.setTextContent(labelText);
194 label.setAttribute(aria_labelAttr, AtomicString(labelText)); 194 label.setAttribute(aria_labelAttr, AtomicString(labelText));
195 } 195 }
196 196
197 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const 197 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const
198 { 198 {
199 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement Names::optGroupLabel())); 199 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement Names::optGroupLabel()));
200 } 200 }
201 201
202 } // namespace blink 202 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698