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

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

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 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
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, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 HTMLSelectElement* ownerSelectElement() const; 44 HTMLSelectElement* ownerSelectElement() const;
45 45
46 String groupLabelText() const; 46 String groupLabelText() const;
47 HTMLDivElement& optGroupLabelElement() const; 47 HTMLDivElement& optGroupLabelElement() const;
48 48
49 private: 49 private:
50 explicit HTMLOptGroupElement(Document&); 50 explicit HTMLOptGroupElement(Document&);
51 ~HTMLOptGroupElement(); 51 ~HTMLOptGroupElement();
52 52
53 bool supportsFocus() const override; 53 bool supportsFocus() const override;
54 void parseAttribute(const QualifiedName&, 54 void parseAttribute(const AttributeModificationParams&) override;
55 const AtomicString&,
56 const AtomicString&) override;
57 void accessKeyAction(bool sendMouseEvents) override; 55 void accessKeyAction(bool sendMouseEvents) override;
58 void didAddUserAgentShadowRoot(ShadowRoot&) override; 56 void didAddUserAgentShadowRoot(ShadowRoot&) override;
59 void attachLayoutTree(const AttachContext& = AttachContext()) override; 57 void attachLayoutTree(const AttachContext& = AttachContext()) override;
60 void detachLayoutTree(const AttachContext& = AttachContext()) override; 58 void detachLayoutTree(const AttachContext& = AttachContext()) override;
61 bool matchesEnabledPseudoClass() const override; 59 bool matchesEnabledPseudoClass() const override;
62 InsertionNotificationRequest insertedInto(ContainerNode*) override; 60 InsertionNotificationRequest insertedInto(ContainerNode*) override;
63 void removedFrom(ContainerNode*) override; 61 void removedFrom(ContainerNode*) override;
64 62
65 // <optgroup> might not have a layoutObject so we manually manage a cached 63 // <optgroup> might not have a layoutObject so we manually manage a cached
66 // style. 64 // style.
67 void updateNonComputedStyle(); 65 void updateNonComputedStyle();
68 ComputedStyle* nonLayoutObjectComputedStyle() const override; 66 ComputedStyle* nonLayoutObjectComputedStyle() const override;
69 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; 67 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
70 68
71 void updateGroupLabel(); 69 void updateGroupLabel();
72 70
73 RefPtr<ComputedStyle> m_style; 71 RefPtr<ComputedStyle> m_style;
74 }; 72 };
75 73
76 } // namespace blink 74 } // namespace blink
77 75
78 #endif // HTMLOptGroupElement_h 76 #endif // HTMLOptGroupElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698