Lines Matching refs:getCommonAncestor

1961         getCommonAncestor: function(a) {

3477 getCommonAncestor: function(a, b) {
3480 c = c.equals(d) ? a && c.type == CKEDITOR.NODE_ELEMENT && this.startOffset == this.endOffset - 1 ? c.getChild(this.startOffset) : c : c.getCommonAncestor(d);
3547 var m = this.getCommonAncestor(),
4126 var c = this.getCommonAncestor(),
7535 k(b, e.block, f) && h.collapsed && !h.getCommonAncestor().isReadOnly() && (e = h.clone(), e.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS), f = new CKEDITOR.dom.walker(e), f.guard = function(a) {
7610 var d = a.getCommonAncestor(b);
7742 (q = b.getCommonAncestor(0, 1)) && (g = CKEDITOR.dtd[q.getName()]) && (!g || !g[e]);) q.getName() in CKEDITOR.dtd.span ? b.splitElement(q) : b.checkStartOfBlock() && b.checkEndOfBlock() ? (b.setStartBefore(q), b.collapse(!0), q.remove()) : b.splitBlock(d == CKEDITOR.ENTER_DIV ?
8235 v = p.getCommonAncestor();
8303 v = !!G.getCommonAncestor(p) && I != CKEDITOR.POSITION_IDENTICAL && !(I & CKEDITOR.POSITION_CONTAINS +
8497 d = c.getCommonAncestor(),
8674 k, l, p = g.getCommonAncestor();
8929 c.getCommonAncestor().isReadOnly() && a.splice(b, 1);
9460 a && (a = b || c[0] && c[0].getCommonAncestor()) && a.getAscendant("body",
9548 if (I < a.length - 1 && (A = a[I], G = a[I + 1], p = A.clone(), p.setStart(A.endContainer, A.endOffset), p.setEnd(G.startContainer, G.startOffset), !p.collapsed && (p.shrink(CKEDITOR.NODE_ELEMENT, !0), b = p.getCommonAncestor(), p = p.getEnclosedNode(),
9592 var a = this.getCommonAncestor();
9624 getCommonAncestor: function() {
9626 return a.length ? a[0].startContainer.getCommonAncestor(a[a.length -
9683 var x = c.getCommonAncestor(),
9722 for (var l = J(this, e), x = l.hasAttributes(), B = u.getCommonAncestor(), y = {}, E = {}, F = {}, H = {}, U, R, aa; l && B;) {
9800 var b = a.getEnclosedNode() || a.getCommonAncestor(!1, !0);
9805 var b = a.getCommonAncestor(!0, !0);
13093 var b = a.getCommonAncestor(!1, !0);
13275 for (b = 0; b < e.length; b++) a = e[b], d = d.getCommonAncestor(a.getParent());
19263 for (var b = c.getCommonAncestor(); b &&
19798 }), (g = c.elementPath(g.getCommonAncestor()).contains("a", 1)) && b) e.push(g);
20278 for (n = 0; n < l.length; n++) g = g.getCommonAncestor(l[n].getParent());
22826 if (b = (new CKEDITOR.dom.elementPath(e.getCommonAncestor(), e.root)).contains({
23049 if (h.collapsed)(h = h.getCommonAncestor().getAscendant({
23227 if ((f ? 1 != c.length : 2 > c.length) || (e = d.getCommonAncestor()) && e.type == CKEDITOR.NODE_ELEMENT && e.is("table")) return !1;
23810 return a && b ? a.equals(b) || a.contains(b) || b.contains(a) || a.getCommonAncestor(b).is(l) : !1