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

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

Issue 14096013: Implement select element list box with shadow DOM. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shadowselect
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/HTMLOptGroupElement.h
diff --git a/Source/WebCore/html/HTMLOptGroupElement.h b/Source/WebCore/html/HTMLOptGroupElement.h
index fe181f7c522d15f29f08a49d8a9314c05add24d2..c1113570cb1e1160c309f1350b2e298e248a0c8a 100644
--- a/Source/WebCore/html/HTMLOptGroupElement.h
+++ b/Source/WebCore/html/HTMLOptGroupElement.h
@@ -28,6 +28,7 @@
namespace WebCore {
+class HTMLDivElement;
class HTMLSelectElement;
class HTMLOptGroupElement : public HTMLElement {
@@ -46,24 +47,20 @@ private:
virtual bool supportsFocus() const;
virtual bool isFocusable() const;
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
- virtual bool rendererIsNeeded(const NodeRenderingContext&) { return false; }
- virtual void attach();
- virtual void detach();
+ virtual void didAddUserAgentShadowRoot(ShadowRoot*) OVERRIDE;
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0);
virtual void accessKeyAction(bool sendMouseEvents);
- // <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 recalcSelectOptions();
+ void updateGroupLabel();
- RefPtr<RenderStyle> m_style;
+ HTMLDivElement* m_groupLabelElement;
};
+HTMLOptGroupElement* toHTMLOptGroupElement(Node*);
+
} //namespace
#endif

Powered by Google App Engine
This is Rietveld 408576698