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

Unified Diff: Source/core/html/HTMLOptGroupElement.h

Issue 347773002: Implement select listbox using shadow DOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/TextIterator.cpp ('k') | Source/core/html/HTMLOptGroupElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptGroupElement.h
diff --git a/Source/core/html/HTMLOptGroupElement.h b/Source/core/html/HTMLOptGroupElement.h
index 1decd1cfa7fb038b33cbd56322fbe577d0d2e63a..3c2b2caa93fd5614463e8c994a74c89a1ee1fd16 100644
--- a/Source/core/html/HTMLOptGroupElement.h
+++ b/Source/core/html/HTMLOptGroupElement.h
@@ -29,39 +29,29 @@
namespace WebCore {
class HTMLSelectElement;
+class HTMLDivElement;
class HTMLOptGroupElement FINAL : public HTMLElement {
public:
- DECLARE_NODE_FACTORY(HTMLOptGroupElement);
+ static PassRefPtrWillBeRawPtr<HTMLOptGroupElement> create(Document&);
virtual bool isDisabledFormControl() const OVERRIDE;
HTMLSelectElement* ownerSelectElement() const;
String groupLabelText() const;
- bool isDisplayNone() const;
-
private:
explicit HTMLOptGroupElement(Document&);
- virtual bool rendererIsFocusable() const OVERRIDE;
+ virtual bool rendererIsFocusable() const OVERRIDE { return true; }
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
- virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
- virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
- virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
-
virtual void childrenChanged(const ChildrenChange&) OVERRIDE;
-
virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE;
+ virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE;
- // <optgroup> never has a renderer so we manually manage a cached style.
- void updateNonRenderStyle();
- virtual RenderStyle* nonRendererStyle() const OVERRIDE;
- virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
-
+ void updateGroupLabel();
void recalcSelectOptions();
-
- RefPtr<RenderStyle> m_style;
+ HTMLDivElement& optGroupLabelElement() const;
};
} //namespace
« no previous file with comments | « Source/core/editing/TextIterator.cpp ('k') | Source/core/html/HTMLOptGroupElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698