On Thu, Jul 26, 2012 at 2:29 PM, Alexandru Chiculita <span dir="ltr">&lt;<a href="mailto:achicu@adobe.com" target="_blank">achicu@adobe.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="HOEnZb"><div class="h5"><br>
On 25.07.2012, at 18:16, Alan Stearns wrote:<br>
<br>
&gt; From:  Adam Barth &lt;<a href="mailto:abarth@webkit.org">abarth@webkit.org</a>&gt;<br>
&gt; Date:  Wednesday, July 25, 2012 6:05 PM<br>
&gt; To:  Sam Weinig &lt;<a href="mailto:sam@webkit.org">sam@webkit.org</a>&gt;<br>
&gt; Cc:  Elliott Sprehn &lt;<a href="mailto:esprehn@google.com">esprehn@google.com</a>&gt;, Alan Stearns<br>
&gt; &lt;<a href="mailto:stearns@adobe.com">stearns@adobe.com</a>&gt;, Kentaro Hara &lt;<a href="mailto:haraken@chromium.org">haraken@chromium.org</a>&gt;,<br>
&gt; &quot;<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a>&quot; &lt;<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a>&gt;<br>
&gt; Subject:  Re: [webkit-dev] Multiple inheritance in the DOM<br>
&gt;<br>
&gt; On Wed, Jul 25, 2012 at 6:00 PM, Sam Weinig &lt;<a href="mailto:sam@webkit.org">sam@webkit.org</a>&gt; wrote:<br>
&gt;<br>
&gt; On Jul 25, 2012, at 5:53 PM, Elliott Sprehn &lt;<a href="mailto:esprehn@google.com">esprehn@google.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;&gt;&gt; It seems like this should really be a [NoInterfaceObject].<br>
&gt;&gt;&gt;&gt; That resolves the issue of multiple inheritance since you<br>
&gt;&gt;&gt;&gt; can no longer do instanceof Region, and I&#39;m not sure why<br>
&gt;&gt;&gt;&gt; you&#39;d ever want to do that anyway.<br>
&gt;<br>
&gt;&gt;&gt; I agree.<br>
&gt;<br>
&gt;&gt; That doesn&#39;t solve the problem.<br>
&gt;<br>
&gt; But it&#39;s a good idea. I&#39;ll add it to the spec.<br>
<br>
</div></div>I don&#39;t see any advantage in having the interface anyway, so why don&#39;t we just it let be a separate object and add two helper methods instead. I can only imagine that other browsers might have the same issue anyway.<br>


<br>
document.getRegionForElement(element)<br>
-&gt; where element can be both Element and CSSPseudoElement<br>
-&gt; this may return null in case of no region being associated, so there&#39;s no need for instanceof tricks anymore.<br>
<br>
region.element<br>
-&gt; that can return either Element or CSSPseudoElement<br>
<br>
BTW, is there any base class shared across Element and CSSPseudoElement?<br></blockquote><div> </div></div>Greping for CSSPseudoElement in WebCore appears to return zero results.<div><br></div><div>Discussing this issue with Sam in #webkit, we wondered whether another solution is to not implement the CSSOM for Regions.  Is there are strong use case for having this CSSOM in the first place?</div>

<div><br></div><div>Adam</div><div><br></div>