Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 2462) sorted by relevance

12345678910>>...99

/external/chromium_org/third_party/WebKit/PerformanceTests/SunSpider/tests/parse-only/
Dprototype-1.6.0.3.js1513 function $(element) { argument
1519 if (Object.isString(element))
1520 element = document.getElementById(element);
1521 return Element.extend(element);
1558 var element = this.Element;
1571 Object.extend(this.Element, element || { });
1572 if (element) this.Element.prototype = element.prototype;
1578 visible: function(element) { argument
1579 return $(element).style.display != 'none';
1582 toggle: function(element) { argument
[all …]
/external/chromium_org/third_party/polymer/components-chromium/core-overlay/
Dcore-overlay-layer-extracted.js14 addElement: function(element) { argument
18 if (element.parentNode !== this) {
19 element.__contents = [];
20 var ip$ = element.querySelectorAll('content');
25 element.__contents.push(n);
27 this.cacheDomLocation(element);
28 this.updateEventController(element);
30 h.shadowRoot.appendChild(element);
31 element.__host = h;
51 updateEventController: function(element) { argument
[all …]
/external/chromium_org/third_party/WebKit/PerformanceTests/Dromaeo/resources/dromaeo/web/lib/
Dprototype-1.7.js1818 function $(element) { argument
1824 if (Object.isString(element))
1825 element = document.getElementById(element);
1826 return Element.extend(element);
1880 var element = global.Element;
1901 Object.extend(global.Element, element || { });
1902 if (element) global.Element.prototype = element.prototype;
1909 Element._purgeElement = function(element) { argument
1910 var uid = element._prototypeUID;
1912 Element.stopObserving(element);
[all …]
/external/opencv/cv/src/
D_cvlist.h116 #define INSERT_NEW(element_type, l, element)\ argument
120 element = (element_type*)(l->m_head_free.m_pos);\
121 if(element->m_next != NULL)\
123 element->m_next->m_prev = NULL;\
124 l->m_head_free.m_pos = element->m_next;\
138 element = (element_type*)((char*)l->m_buffer + sizeof(void*));\
142 element = (element_type*)((char*)l->m_buffer + sizeof(void*)) + l->m_size - 1;\
147 #define INSERT_FREE(element_type, l, element)\ argument
150 ((element_type*)l->m_head_free.m_pos)->m_prev = element;\
152 element->m_next = ((element_type*)l->m_head_free.m_pos);\
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/
DSelectorChecker.cpp70 static bool matchesCustomPseudoElement(const Element* element, const CSSSelector& selector) in matchesCustomPseudoElement() argument
72 ShadowRoot* root = element->containingShadowRoot(); in matchesCustomPseudoElement()
76 if (element->shadowPseudoId() != selector.value()) in matchesCustomPseudoElement()
89 ….scope && (context.scope == context.element->containingShadowRoot() || context.scope->treeScope() … in parentElement()
90 return context.element->parentOrShadowHostElement(); in parentElement()
91 return context.element->parentElement(); in parentElement()
100 if (context.scope->treeScope() == context.element->treeScope()) in scopeContainsLastMatchedElement()
106 …n context.element == context.scope->shadowHost() && (!context.previousElement || context.previousE… in scopeContainsLastMatchedElement()
112 return context.element == context.scope->shadowHost(); in nextSelectorExceedsScope()
133 if (!matchesCustomPseudoElement(context.element, *context.selector)) in match()
[all …]
DSiblingTraversalStrategies.h54 bool operator() (const Element& element) const { return element.hasTagName(m_tagName); } in operator()
60 inline bool DOMSiblingTraversalStrategy::isFirstChild(Element& element) const in isFirstChild() argument
62 return !ElementTraversal::previousSibling(element); in isFirstChild()
65 inline bool DOMSiblingTraversalStrategy::isLastChild(Element& element) const in isLastChild() argument
67 return !ElementTraversal::nextSibling(element); in isLastChild()
70 inline bool DOMSiblingTraversalStrategy::isFirstOfType(Element& element, const QualifiedName& type)… in isFirstOfType() argument
72 return !ElementTraversal::previousSibling(element, HasTagName(type)); in isFirstOfType()
75 inline bool DOMSiblingTraversalStrategy::isLastOfType(Element& element, const QualifiedName& type) … in isLastOfType() argument
77 return !ElementTraversal::nextSibling(element, HasTagName(type)); in isLastOfType()
80 inline int DOMSiblingTraversalStrategy::countElementsBefore(Element& element) const in countElementsBefore() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DInplaceEditor.js17 WebInspector.InplaceEditor.startEditing = function(element, config) argument
20 return self.runtime.instance(WebInspector.InplaceEditor).startEditing(element, config);
24 return WebInspector.InplaceEditor._defaultInstance.startEditing(element, config);
32 var element = editingContext.element;
33 if (element.tagName === "INPUT" && element.type === "text")
34 return element.value;
36 return element.textContent;
41 var element = editingContext.element;
42 element.classList.add("editing");
44 var oldTabIndex = element.getAttribute("tabIndex");
[all …]
DStatusBarButton.js38 this.element = document.createElement(elementType);
60 this.element.disabled = !this._enabled;
72 this.element.classList.toggle("hidden", !x);
88 this.element.className = "status-bar-item status-bar-counter hidden";
90 this.element.classList.add(className);
91 this.element.addEventListener("click", this._clicked.bind(this), false);
95 var element = this.element.createChild("span", "status-bar-counter-item");
96 element.createChild("div", counters[i]);
97 element.createChild("span");
98 this._counters.push({counter: counters[i], element: element, value: 0, title: ""}); property
[all …]
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
DSharedStyleFinder.cpp60 if (!isHTMLInputElement(candidate) || !isHTMLInputElement(element())) in canShareStyleWithControl()
64 HTMLInputElement& thisInput = toHTMLInputElement(element()); in canShareStyleWithControl()
75 if (candidate.isDisabledFormControl() != element().isDisabledFormControl()) in canShareStyleWithControl()
78 if (candidate.isDefaultButtonForForm() != element().isDefaultButtonForForm()) in canShareStyleWithControl()
84 if (willValidate != element().willValidate()) in canShareStyleWithControl()
87 …if (willValidate && (candidate.isValidFormControlElement() != element().isValidFormControlElement(… in canShareStyleWithControl()
90 if (candidate.isInRange() != element().isInRange()) in canShareStyleWithControl()
93 if (candidate.isOutOfRange() != element().isOutOfRange()) in canShareStyleWithControl()
110 static inline const AtomicString& typeAttributeValue(const Element& element) in typeAttributeValue() argument
113 …return element.isSVGElement() ? element.getAttribute(typeAttr) : element.fastGetAttribute(typeAttr… in typeAttributeValue()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/dom/
DDocumentOrderedMap.cpp44 inline bool keyMatchesId(const AtomicString& key, const Element& element) in keyMatchesId() argument
46 return element.getIdAttribute() == key; in keyMatchesId()
49 inline bool keyMatchesMapName(const AtomicString& key, const Element& element) in keyMatchesMapName() argument
51 return isHTMLMapElement(element) && toHTMLMapElement(element).getName() == key; in keyMatchesMapName()
54 inline bool keyMatchesLowercasedMapName(const AtomicString& key, const Element& element) in keyMatchesLowercasedMapName() argument
56 return isHTMLMapElement(element) && toHTMLMapElement(element).getName().lower() == key; in keyMatchesLowercasedMapName()
59 inline bool keyMatchesLabelForAttribute(const AtomicString& key, const Element& element) in keyMatchesLabelForAttribute() argument
61 return isHTMLLabelElement(element) && element.getAttribute(forAttr) == key; in keyMatchesLabelForAttribute()
69 void DocumentOrderedMap::add(const AtomicString& key, Element* element) in add() argument
72 ASSERT(element); in add()
[all …]
DSelectorQuery.cpp46 ALWAYS_INLINE static void appendElement(OutputType& output, Element& element) in appendElement()
49 output = &element; in appendElement()
56 ALWAYS_INLINE static void appendElement(OutputType& output, Element& element) in appendElement()
58 output.append(&element); in appendElement()
87 Element* nextInternal(Element* element) in nextInternal() argument
89 for (; element; element = ElementTraversal::next(*element, m_rootNode)) { in nextInternal()
90 if (element->hasClass() && element->classNames().contains(m_className)) in nextInternal()
91 return element; in nextInternal()
118 inline bool SelectorDataList::selectorMatches(const CSSSelector& selector, Element& element, const … in selectorMatches() argument
120 SelectorChecker selectorChecker(element.document(), SelectorChecker::QueryingRules); in selectorMatches()
[all …]
DStyleElement.cpp40 static bool isCSS(Element* element, const AtomicString& type) in isCSS() argument
42 …return type.isEmpty() || (element->isHTMLElement() ? equalIgnoringCase(type, "text/css") : (type =… in isCSS()
63 void StyleElement::processStyleSheet(Document& document, Element* element) in processStyleSheet() argument
66 ASSERT(element); in processStyleSheet()
67 ASSERT(element->inDocument()); in processStyleSheet()
70 document.styleEngine()->addStyleSheetCandidateNode(element, m_createdByParser); in processStyleSheet()
74 process(element); in processStyleSheet()
77 void StyleElement::removedFromDocument(Document& document, Element* element) in removedFromDocument() argument
79 removedFromDocument(document, element, 0, document); in removedFromDocument()
82 void StyleElement::removedFromDocument(Document& document, Element* element, ContainerNode* scoping… in removedFromDocument() argument
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DImageInputType.cpp43 inline ImageInputType::ImageInputType(HTMLInputElement& element) in ImageInputType() argument
44 : BaseButtonInputType(element) in ImageInputType()
48 PassRefPtrWillBeRawPtr<InputType> ImageInputType::create(HTMLInputElement& element) in create() argument
50 return adoptRefWillBeNoop(new ImageInputType(element)); in create()
65 if (!element().isActivatedSubmit()) in appendFormData()
67 const AtomicString& name = element().name(); in appendFormData()
79 if (!element().value().isEmpty()) in appendFormData()
80 encoding.appendData(name, element().value()); in appendFormData()
110 RefPtrWillBeRawPtr<HTMLInputElement> element(this->element()); in handleDOMActivateEvent() local
111 if (element->isDisabledFormControl() || !element->form()) in handleDOMActivateEvent()
[all …]
DBaseMultipleFieldsDateAndTimeInputType.cpp132 …return toDateTimeEditElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames::d… in dateTimeEditElement()
137 …return toSpinButtonElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames::spi… in spinButtonElement()
142 …return toClearButtonElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames::cl… in clearButtonElement()
147 …return toPickerIndicatorElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames… in pickerIndicatorElement()
152 return element().userAgentShadowRoot()->contains(element().document().focusedElement()); in containsFocusedShadowElement()
163 RefPtrWillBeRawPtr<HTMLInputElement> protector(element()); in didBlurFromControl()
165 element().setFocus(false); in didBlurFromControl()
179 element().setFocus(true); in didFocusOnControl()
184 RefPtrWillBeRawPtr<HTMLInputElement> input(element()); in editControlValueChanged()
206 return element().isDisabledFormControl(); in isEditControlOwnerDisabled()
[all …]
DTextFieldInputType.cpp103 …RefPtrWillBeRawPtr<DataListIndicatorElement> element = adoptRefWillBeNoop(new DataListIndicatorEle… in create() local
104element->setShadowPseudoId(AtomicString("-webkit-calendar-picker-indicator", AtomicString::Constru… in create()
105 element->setAttribute(idAttr, ShadowElementNames::pickerIndicator()); in create()
106 return element.release(); in create()
111 TextFieldInputType::TextFieldInputType(HTMLInputElement& element) in TextFieldInputType() argument
112 : InputType(element) in TextFieldInputType()
126 …return toSpinButtonElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames::spi… in spinButtonElement()
141 return element().isRequired() && value.isEmpty(); in valueMissing()
153 RefPtrWillBeRawPtr<HTMLInputElement> input(element()); in setValue()
197 if (!element().focused()) in handleKeydownEvent()
[all …]
DRadioInputType.cpp40 HTMLElement* nextElement(const HTMLElement& element, bool forward) in nextElement() argument
42 …return forward ? Traversal<HTMLElement>::next(element) : Traversal<HTMLElement>::previous(element); in nextElement()
49 PassRefPtrWillBeRawPtr<InputType> RadioInputType::create(HTMLInputElement& element) in create() argument
51 return adoptRefWillBeNoop(new RadioInputType(element)); in create()
61 return element().isInRequiredRadioButtonGroup() && !element().checkedRadioButtonForGroup(); in valueMissing()
89 Document& document = element().document(); in handleKeydownEvent()
96 …for (HTMLElement* htmlElement = nextElement(element(), forward); htmlElement; htmlElement = nextEl… in handleKeydownEvent()
104 if (inputElement->form() != element().form()) in handleKeydownEvent()
106 …if (inputElement->type() == InputTypeNames::radio && inputElement->name() == element().name() && i… in handleKeydownEvent()
123 if (element().checked()) in handleKeyupEvent()
[all …]
/external/chromium_org/ui/compositor/
Dlayer_animation_element_unittest.cc34 scoped_ptr<LayerAnimationElement> element( in TEST() local
36 element->set_animation_group_id(1); in TEST()
40 element->set_requested_start_time(start_time); in TEST()
42 element->Start(&delegate, 1); in TEST()
43 element->Progress(start_time, &delegate); in TEST()
47 element->set_effective_start_time(effective_start_time); in TEST()
48 element->Progress(effective_start_time, &delegate); in TEST()
49 EXPECT_FLOAT_EQ(0.0, element->last_progressed_fraction()); in TEST()
50 element->Progress(effective_start_time + delta/2, &delegate); in TEST()
51 EXPECT_FLOAT_EQ(0.5, element->last_progressed_fraction()); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/dom/custom/
DCustomElementRegistrationContext.cpp75 RefPtrWillBeRawPtr<Element> element; in createCustomTagElement() local
78 element = HTMLElement::create(tagName, document); in createCustomTagElement()
80 element = SVGUnknownElement::create(tagName, document); in createCustomTagElement()
86 element->setCustomElementState(Element::WaitingForUpgrade); in createCustomTagElement()
87 resolveOrScheduleResolution(element.get(), nullAtom); in createCustomTagElement()
88 return element.release(); in createCustomTagElement()
91 void CustomElementRegistrationContext::didGiveTypeExtension(Element* element, const AtomicString& t… in didGiveTypeExtension() argument
93 resolveOrScheduleResolution(element, type); in didGiveTypeExtension()
96 void CustomElementRegistrationContext::resolveOrScheduleResolution(Element* element, const AtomicSt… in resolveOrScheduleResolution() argument
100 const AtomicString& type = CustomElement::isValidName(element->localName()) in resolveOrScheduleResolution()
[all …]
/external/chromium_org/chrome/browser/ui/webui/options/
Dsettings_format_browsertest.js68 fail: function(key, element, args) { argument
69 var subs = [this.getLabel(element)].concat(
85 getLabel: function(element) { argument
86 if (element.id)
87 return element.id;
89 if (element.pref)
90 return element.pref;
92 if (element.name && element.value)
93 return element.name + '-' + element.value;
95 return this.getLabel(element.parentNode);
[all …]
/external/droiddriver/src/com/google/android/droiddriver/validators/
DDefaultAccessibilityValidator.java31 public boolean isApplicable(UiElement element, Action action) { in isApplicable() argument
36 public String validate(UiElement element, Action action) { in validate() argument
37 return isSpeakingNode(element) ? null : "TalkBack cannot speak about it"; in validate()
41 private static boolean isAccessibilityFocusable(UiElement element) { in isAccessibilityFocusable() argument
42 if (isActionableForAccessibility(element)) { in isAccessibilityFocusable()
46 if (isTopLevelScrollItem(element) && (isSpeakingNode(element))) { in isAccessibilityFocusable()
52 private static boolean isTopLevelScrollItem(UiElement element) { in isTopLevelScrollItem() argument
53 UiElement parent = element.getParent(); in isTopLevelScrollItem()
57 private static boolean isActionableForAccessibility(UiElement element) { in isActionableForAccessibility() argument
58 if (element.isFocusable() || element.isClickable() || element.isLongClickable()) { in isActionableForAccessibility()
[all …]
/external/chromium_org/third_party/skia/src/gpu/
DGrReducedClip.cpp167 const Element* element = iter.prev(); in reduced_stack_walker() local
168 if (NULL == element) { in reduced_stack_walker()
172 if (SkClipStack::kEmptyGenID == element->getGenID()) { in reduced_stack_walker()
176 if (SkClipStack::kWideOpenGenID == element->getGenID()) { in reduced_stack_walker()
184 switch (element->getOp()) { in reduced_stack_walker()
188 if (element->isInverseFilled()) { in reduced_stack_walker()
189 if (element->contains(queryBounds)) { in reduced_stack_walker()
191 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
196 if (element->contains(queryBounds)) { in reduced_stack_walker()
199 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
[all …]
/external/skia/src/gpu/
DGrReducedClip.cpp167 const Element* element = iter.prev(); in reduced_stack_walker() local
168 if (NULL == element) { in reduced_stack_walker()
172 if (SkClipStack::kEmptyGenID == element->getGenID()) { in reduced_stack_walker()
176 if (SkClipStack::kWideOpenGenID == element->getGenID()) { in reduced_stack_walker()
184 switch (element->getOp()) { in reduced_stack_walker()
188 if (element->isInverseFilled()) { in reduced_stack_walker()
189 if (element->contains(queryBounds)) { in reduced_stack_walker()
191 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
196 if (element->contains(queryBounds)) { in reduced_stack_walker()
199 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) { in reduced_stack_walker()
[all …]
/external/chromium_org/tools/perf/metrics/
Dmedia.js11 function MediaMetricBase(element) { argument
12 checkElementIsNotBound(element);
15 this.element = element;
29 function HTMLMediaMetric(element) { argument
30 MediaMetricBase.prototype.constructor.call(this, element); argument
40 this.element.addEventListener('play', onVideoLoad);
41 this.element.addEventListener('loadedmetadata', onVideoLoad);
42 this.element.addEventListener('playing', function(e) {
45 this.element.addEventListener('ended', function(e) {
51 this.element.addEventListener('willPlay', function (e) {
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/
DHTMLCollection.cpp205 …inline bool isMatchingHTMLElement(const HTMLCollection& htmlCollection, const HTMLElement& element) in isMatchingHTMLElement() argument
209 return element.hasTagName(imgTag); in isMatchingHTMLElement()
211 return element.hasTagName(scriptTag); in isMatchingHTMLElement()
213 return element.hasTagName(formTag); in isMatchingHTMLElement()
215 return toDocumentNameCollection(htmlCollection).elementMatches(element); in isMatchingHTMLElement()
217 return element.hasTagName(tbodyTag); in isMatchingHTMLElement()
219 return element.hasTagName(tdTag) || element.hasTagName(thTag); in isMatchingHTMLElement()
221 return element.hasTagName(trTag); in isMatchingHTMLElement()
223 return toHTMLOptionsCollection(htmlCollection).elementMatches(element); in isMatchingHTMLElement()
225 return isHTMLOptionElement(element) && toHTMLOptionElement(element).selected(); in isMatchingHTMLElement()
[all …]
DDocumentNameCollection.cpp19 bool DocumentNameCollection::elementMatches(const HTMLElement& element) const in elementMatches()
24 …if (isHTMLFormElement(element) || isHTMLIFrameElement(element) || (isHTMLEmbedElement(element) && … in elementMatches()
25 return element.getNameAttribute() == m_name; in elementMatches()
26 …if (isHTMLAppletElement(element) || (isHTMLObjectElement(element) && toHTMLObjectElement(element).… in elementMatches()
27 return element.getNameAttribute() == m_name || element.getIdAttribute() == m_name; in elementMatches()
28 if (isHTMLImageElement(element)) in elementMatches()
29 …return element.getNameAttribute() == m_name || (element.getIdAttribute() == m_name && element.hasN… in elementMatches()

12345678910>>...99