/external/webkit/WebCore/accessibility/ |
D | AXObjectCache.cpp | 76 AccessibilityObject* AXObjectCache::get(RenderObject* renderer) in get() argument 78 if (!renderer) in get() 82 AXID axID = m_renderObjectMapping.get(renderer); in get() 99 AccessibilityObject* AXObjectCache::getOrCreate(RenderObject* renderer) in getOrCreate() argument 101 if (!renderer) in getOrCreate() 104 AccessibilityObject* obj = get(renderer); in getOrCreate() 107 Node* node = renderer->node(); in getOrCreate() 109 if (renderer->isListBox()) in getOrCreate() 110 newObj = AccessibilityListBox::create(renderer); in getOrCreate() 112 newObj = AccessibilityList::create(renderer); in getOrCreate() [all …]
|
D | AccessibilityImageMapLink.cpp | 65 if (!m_mapElement || !m_mapElement->renderer()) in parentObject() 68 return m_mapElement->document()->axObjectCache()->getOrCreate(m_mapElement->renderer()); in parentObject() 121 RenderObject* renderer; in elementRect() local 123 renderer = static_cast<AccessibilityRenderObject*>(m_parent)->renderer(); in elementRect() 125 renderer = m_mapElement->renderer(); in elementRect() 127 if (!renderer) in elementRect() 130 return m_areaElement->getRect(renderer); in elementRect()
|
/external/webkit/WebCore/rendering/ |
D | TextControlInnerElements.cpp | 55 RenderObject* renderer = node()->shadowAncestorNode()->renderer(); in nodeAtPoint() local 58 if (renderer->isTextField()) in nodeAtPoint() 59 placeholderIsVisible = toRenderTextControlSingleLine(renderer)->placeholderIsVisible(); in nodeAtPoint() 72 RenderTextControl* renderer = toRenderTextControl(node()->shadowAncestorNode()->renderer()); in positionForPoint() local 73 if (renderer->hasOverflowClip()) in positionForPoint() 74 renderer->layer()->addScrolledContentOffset(contentsX, contentsY); in positionForPoint() 92 RenderObject* renderer = createRenderer(arena, style.get()); in attachInnerElement() local 93 if (renderer) { in attachInnerElement() 94 setRenderer(renderer); in attachInnerElement() 95 renderer->setStyle(style); in attachInnerElement() [all …]
|
D | MediaControlElements.cpp | 60 rootStyle->inheritFrom(mediaElement->renderer()->style()); in MediaControlShadowRootElement() 63 …RenderMediaControlShadowRoot* renderer = new (mediaElement->renderer()->renderArena()) RenderMedia… in MediaControlShadowRootElement() local 64 renderer->setStyle(rootStyle.release()); in MediaControlShadowRootElement() 65 setRenderer(renderer); in MediaControlShadowRootElement() 72 if (renderer()) { in updateStyle() 73 …RenderStyle* timelineContainerStyle = m_mediaElement->renderer()->getCachedPseudoStyle(MEDIA_CONTR… in updateStyle() 74 renderer()->setStyle(timelineContainerStyle); in updateStyle() 96 if (renderer()) in update() 97 renderer()->updateFromElement(); in update() 103 RenderStyle* style = m_mediaElement->renderer()->getCachedPseudoStyle(m_pseudoStyleId); in styleForElement() [all …]
|
D | RenderLayer.cpp | 126 RenderLayer::RenderLayer(RenderBoxModelObject* renderer) in RenderLayer() argument 127 : m_renderer(renderer) in RenderLayer() 179 if (!renderer->firstChild() && renderer->style()) { in RenderLayer() 181 m_hasVisibleContent = renderer->style()->visibility() == VISIBLE; in RenderLayer() 187 if (inResizeMode() && !renderer()->documentBeingDestroyed()) { in ~RenderLayer() 188 if (Frame* frame = renderer()->document()->frame()) in ~RenderLayer() 226 ASSERT(renderer()->view()); in compositor() 227 return renderer()->view()->compositor(); in compositor() 255 renderer()->setChildNeedsLayout(true, false); in setStaticY() 261 renderer()->repaint(); in updateLayerPositions() [all …]
|
D | LayoutState.cpp | 36 LayoutState::LayoutState(LayoutState* prev, RenderBox* renderer, const IntSize& offset) in LayoutState() argument 39 , m_renderer(renderer) in LayoutState() 44 bool fixed = renderer->isPositioned() && renderer->style()->position() == FixedPosition; in LayoutState() 47 FloatPoint fixedOffset = renderer->view()->localToAbsolute(FloatPoint(), true); in LayoutState() 52 if (renderer->isRelPositioned()) { in LayoutState() 53 if (renderer->hasLayer()) in LayoutState() 54 m_offset += renderer->layer()->relativePositionOffset(); in LayoutState() 55 } else if (renderer->isPositioned() && !fixed) { in LayoutState() 56 if (RenderObject* container = renderer->container()) { in LayoutState() 58 m_offset += toRenderInline(container)->relativePositionedInlineOffset(renderer); in LayoutState() [all …]
|
D | InlineFlowBox.cpp | 83 if (child->renderer()->selectionState() != RenderObject::SelectionNone) in addToLine() 136 toRenderInline(renderer())->lineBoxes()->removeLineBox(this); in removeLineBoxFromRenderObject() 149 toRenderInline(renderer())->lineBoxes()->extractLineBox(this); in extractLineBoxFromRenderObject() 162 toRenderInline(renderer())->lineBoxes()->attachLineBox(this); in attachLineBoxToRenderObject() 174 return toRenderInline(renderer())->lineBoxes(); in rendererLineBoxes() 182 if (endObject == renderer()) in onEndChain() 188 if (parent->lastChild() != curr || parent == renderer()) in onEndChain() 207 bool ltr = renderer()->style()->direction() == LTR; in determineSpacingForFlowBoxes() 212 if (!lineBoxList->firstLineBox()->isConstructed() && !renderer()->isInlineContinuation()) { in determineSpacingForFlowBoxes() 227 RenderInline* inlineFlow = toRenderInline(renderer()); in determineSpacingForFlowBoxes() [all …]
|
D | RenderLayerBacking.cpp | 77 if (renderer()->node()) { in createGraphicsLayer() 78 if (renderer()->node()->isDocumentNode()) in createGraphicsLayer() 81 if (renderer()->node()->isHTMLElement() && renderer()->node()->hasID()) in createGraphicsLayer() 82 …m_graphicsLayer->setName(renderer()->renderName() + String(" ") + static_cast<HTMLElement*>(render… in createGraphicsLayer() 84 m_graphicsLayer->setName(renderer()->renderName()); in createGraphicsLayer() 111 m_graphicsLayer->setOpacity(compositingOpacity(renderer()->opacity())); in updateLayerOpacity() 116 RenderStyle* style = renderer()->style(); in updateLayerTransform() 122 …style->applyTransform(t, toRenderBox(renderer())->borderBoxRect().size(), RenderStyle::ExcludeTran… in updateLayerTransform() 163 if (renderer()->isImage()) { in updateGraphicsLayerConfiguration() 186 …if (!renderer()->animation()->isAnimatingPropertyOnRenderer(renderer(), CSSPropertyWebkitTransform… in updateGraphicsLayerGeometry() [all …]
|
D | RootInlineBox.cpp | 85 detachEllipsisBox(renderer()->renderArena()); in clearTruncation() 106 …EllipsisBox* ellipsisBox = new (renderer()->renderArena()) EllipsisBox(renderer(), ellipsisStr, th… in placeEllipsis() 139 …if (m_hasEllipsisBox && renderer()->shouldPaintWithinRoot(paintInfo) && renderer()->style()->visib… in paintEllipsisBox() 148 Frame* frame = renderer()->document()->frame(); in addHighlightOverflow() 157 …nclosingIntRect(page->chrome()->client()->customHighlightRect(renderer()->node(), renderer()->styl… in addHighlightOverflow() 164 …if (!renderer()->shouldPaintWithinRoot(paintInfo) || renderer()->style()->visibility() != VISIBLE … in paintCustomHighlight() 167 Frame* frame = renderer()->document()->frame(); in paintCustomHighlight() 176 …FloatRect inflatedRect = page->chrome()->client()->customHighlightRect(renderer()->node(), highlig… in paintCustomHighlight() 178 …page->chrome()->client()->paintCustomHighlight(renderer()->node(), highlightType, rootRect, rootRe… in paintCustomHighlight() 188 RenderStyle* styleToUse = renderer()->style(m_firstLine); in paint() [all …]
|
D | HitTestResult.cpp | 129 RenderObject* renderer = m_innerNonSharedNode->renderer(); in boundingBox() local 130 if (renderer) in boundingBox() 131 return renderer->absoluteBoundingBoxRect(); in boundingBox() 161 if (RenderObject* renderer = m_innerNonSharedNode->renderer()) in spellingToolTip() local 162 dir = renderer->style()->direction(); in spellingToolTip() 189 if (RenderObject* renderer = titleNode->renderer()) in title() local 190 dir = renderer->style()->direction(); in title() 235 RenderObject* renderer = m_innerNonSharedNode->renderer(); in image() local 236 if (renderer && renderer->isImage()) { in image() 237 RenderImage* image = static_cast<WebCore::RenderImage*>(renderer); in image() [all …]
|
D | InlineTextBox.cpp | 63 RenderObject::SelectionState state = renderer()->selectionState(); in selectionState() 66 renderer()->selectionStartEnd(startPos, endPos); in selectionState() 111 toRenderText(renderer())->removeTextBox(this); in deleteLine() 120 toRenderText(renderer())->extractTextBox(this); in extractLine() 128 toRenderText(renderer())->attachTextBox(this); in attachLine() 181 … int widthOfVisibleText = toRenderText(renderer())->width(m_start, offset, textPos(), m_firstLine); in placeEllipsisBox() 241 …return renderer()->isBR() || (renderer()->style()->preserveNewline() && len() == 1 && (*textRender… in isLineBreak() 251 renderer()->updateHitTestResult(result, IntPoint(x - tx, y - ty)); in nodeAtPoint() 309 …if (isLineBreak() || !renderer()->shouldPaintWithinRoot(paintInfo) || renderer()->style()->visibil… in paint() 329 TextDirection flowDirection = renderer()->containingBlock()->style()->direction(); in paint() [all …]
|
/external/webkit/WebCore/dom/ |
D | Position.cpp | 52 RenderObject* renderer = node->renderer(); in nextRenderedEditable() local 53 if (!renderer) in nextRenderedEditable() 55 …if ((renderer->isBox() && toRenderBox(renderer)->inlineBoxWrapper()) || (renderer->isText() && toR… in nextRenderedEditable() 67 RenderObject* renderer = node->renderer(); in previousRenderedEditable() local 68 if (!renderer) in previousRenderedEditable() 70 …if ((renderer->isBox() && toRenderBox(renderer)->inlineBoxWrapper()) || (renderer->isText() && toR… in previousRenderedEditable() 286 return n->renderer() ? n->renderer()->previousOffset(current) : current - 1; in uncheckedPreviousOffset() 291 return n->renderer() ? n->renderer()->previousOffsetForBackwardDeletion(current) : current - 1; in uncheckedPreviousOffsetForBackwardDeletion() 296 return n->renderer() ? n->renderer()->nextOffset(current) : current + 1; in uncheckedNextOffset() 332 if (!node()->renderer()) in renderedOffset() [all …]
|
D | CharacterData.cpp | 59 if ((!renderer() || !rendererIsNeeded(renderer()->style())) && attached()) { in setData() 62 } else if (renderer()) in setData() 63 toRenderText(renderer())->setText(m_data); in setData() 87 if ((!renderer() || !rendererIsNeeded(renderer()->style())) && attached()) { in appendData() 90 } else if (renderer()) in appendData() 91 toRenderText(renderer())->setTextWithOffset(m_data, oldStr->length(), 0); in appendData() 108 if ((!renderer() || !rendererIsNeeded(renderer()->style())) && attached()) { in insertData() 111 } else if (renderer()) in insertData() 112 toRenderText(renderer())->setTextWithOffset(m_data, offset, 0); in insertData() 137 if ((!renderer() || !rendererIsNeeded(renderer()->style())) && attached()) { in deleteData() [all …]
|
/external/webkit/WebCore/page/animation/ |
D | AnimationController.cpp | 64 …tr<CompositeAnimation> AnimationControllerPrivate::accessCompositeAnimation(RenderObject* renderer) in accessCompositeAnimation() argument 66 RefPtr<CompositeAnimation> animation = m_compositeAnimations.get(renderer); in accessCompositeAnimation() 69 m_compositeAnimations.set(renderer, animation); in accessCompositeAnimation() 74 bool AnimationControllerPrivate::clear(RenderObject* renderer) in clear() argument 78 PassRefPtr<CompositeAnimation> animation = m_compositeAnimations.take(renderer); in clear() 196 bool AnimationControllerPrivate::isAnimatingPropertyOnRenderer(RenderObject* renderer, CSSPropertyI… in isAnimatingPropertyOnRenderer() argument 198 RefPtr<CompositeAnimation> animation = m_compositeAnimations.get(renderer); in isAnimatingPropertyOnRenderer() 211 RenderObject* renderer = it->first; in suspendAnimations() local 212 if (renderer->document() == document) { in suspendAnimations() 227 RenderObject* renderer = it->first; in resumeAnimations() local [all …]
|
/external/webkit/WebCore/editing/ |
D | VisiblePosition.cpp | 114 for (RenderObject* r = p.node()->renderer(); r; r = r->parent()) { in leftVisuallyDistinctCandidate() 128 RenderObject* renderer = box->renderer(); in leftVisuallyDistinctCandidate() local 131 … if ((renderer->isReplaced() || renderer->isBR()) && offset == box->caretRightmostOffset()) in leftVisuallyDistinctCandidate() 134 …offset = box->direction() == LTR ? renderer->previousOffset(offset) : renderer->nextOffset(offset); in leftVisuallyDistinctCandidate() 150 renderer = box->renderer(); in leftVisuallyDistinctCandidate() 179 renderer = box->renderer(); in leftVisuallyDistinctCandidate() 188 renderer = box->renderer(); in leftVisuallyDistinctCandidate() 218 renderer = box->renderer(); in leftVisuallyDistinctCandidate() 224 p = Position(renderer->node(), offset); in leftVisuallyDistinctCandidate() 256 for (RenderObject* r = p.node()->renderer(); r; r = r->parent()) { in rightVisuallyDistinctCandidate() [all …]
|
D | TextIterator.cpp | 201 RenderObject* renderer = node->renderer(); in fullyClipsContents() local 202 if (!renderer || !renderer->isBox() || !renderer->hasOverflowClip()) in fullyClipsContents() 204 return toRenderBox(renderer)->size().isEmpty(); in fullyClipsContents() 209 RenderObject* renderer = node->renderer(); in ignoresContainerClip() local 210 if (!renderer || renderer->isText()) in ignoresContainerClip() 212 EPosition position = renderer->style()->position(); in ignoresContainerClip() 358 RenderObject* renderer = m_node->renderer(); in advance() local 359 if (!renderer) { in advance() 365 …if (renderer->isText() && m_node->nodeType() == Node::TEXT_NODE) // FIXME: What about CDATA_SECTIO… in advance() 367 else if (renderer && (renderer->isImage() || renderer->isWidget() || in advance() [all …]
|
D | visible_units.cpp | 125 …bool inTextSecurityMode = start.node() && start.node()->renderer() && start.node()->renderer()->st… in previousBoundary() 153 …atic_cast<int>(next) <= node->maxCharacterOffset()) || (node->renderer() && node->renderer()->isBR… in previousBoundary() 211 …bool inTextSecurityMode = start.node() && start.node()->renderer() && start.node()->renderer()->st… in nextBoundary() 358 RenderObject *renderer = node->renderer(); in rootBoxForLine() local 359 if (!renderer) in rootBoxForLine() 389 …if (p.node()->renderer() && p.node()->renderer()->isRenderBlock() && p.deprecatedEditingOffset() =… in startPositionForLine() 404 RenderObject *startRenderer = startBox->renderer(); in startPositionForLine() 457 …if (p.node()->renderer() && p.node()->renderer()->isRenderBlock() && p.deprecatedEditingOffset() =… in endPositionForLine() 471 RenderObject *endRenderer = endBox->renderer(); in endPositionForLine() 545 if (p->renderer() && !p->renderer()->isInline()) in enclosingNodeWithNonInlineRenderer() [all …]
|
/external/webkit/WebCore/html/ |
D | HTMLTextAreaElement.cpp | 98 if (!renderer()) in selectionStart() 102 return toRenderTextControl(renderer())->selectionStart(); in selectionStart() 107 if (!renderer()) in selectionEnd() 111 return toRenderTextControl(renderer())->selectionEnd(); in selectionEnd() 117 return toRenderTextControl(element->renderer()); in rendererAfterUpdateLayout() 122 if (RenderTextControl* renderer = rendererAfterUpdateLayout(this)) in setSelectionStart() local 123 renderer->setSelectionStart(start); in setSelectionStart() 128 if (RenderTextControl* renderer = rendererAfterUpdateLayout(this)) in setSelectionEnd() local 129 renderer->setSelectionEnd(end); in setSelectionEnd() 134 if (RenderTextControl* renderer = rendererAfterUpdateLayout(this)) in select() local [all …]
|
D | HTMLFormControlElement.cpp | 84 if (renderer() && renderer()->style()->hasAppearance()) in parseMappedAttribute() 85 renderer()->theme()->stateChanged(renderer(), EnabledState); in parseMappedAttribute() 92 if (renderer() && renderer()->style()->hasAppearance()) in parseMappedAttribute() 93 renderer()->theme()->stateChanged(renderer(), ReadOnlyState); in parseMappedAttribute() 108 if (renderer()) in attach() 109 renderer()->updateFromElement(); in attach() 118 if (autofocus() && renderer() && !document()->ignoreAutofocus() && !isReadOnlyFormControl() && in attach() 221 if (renderer()) in recalcStyle() 222 renderer()->updateFromElement(); in recalcStyle() 227 if (disabled() || !renderer() || in isFocusable() [all …]
|
/external/webkit/WebCore/css/ |
D | CSSImageGeneratorValue.cpp | 47 void CSSImageGeneratorValue::addClient(RenderObject* renderer, const IntSize& size) in addClient() argument 52 m_clients.add(renderer, size); in addClient() 55 void CSSImageGeneratorValue::removeClient(RenderObject* renderer) in removeClient() argument 57 IntSize size = m_clients.get(renderer); in removeClient() 63 m_clients.remove(renderer); in removeClient() 67 Image* CSSImageGeneratorValue::getImage(RenderObject* renderer, const IntSize& size) in getImage() argument 69 IntSize oldSize = m_clients.get(renderer); in getImage() 71 removeClient(renderer); in getImage() 72 addClient(renderer, size); in getImage()
|
/external/webkit/WebCore/wml/ |
D | WMLFormControlElement.cpp | 44 if (!renderer() || !renderer()->isBox()) in isFocusable() 47 if (toRenderBox(renderer())->size().isEmpty()) in isFocusable() 50 if (RenderStyle* style = renderer()->style()) { in isFocusable() 66 if (renderer()) in attach() 67 renderer()->updateFromElement(); in attach() 74 if (renderer()) in recalcStyle() 75 renderer()->updateFromElement(); in recalcStyle()
|
/external/webkit/WebCore/page/ |
D | FrameView.cpp | 154 RenderPart* renderer = m_frame->ownerRenderer(); in ~FrameView() local 155 if (renderer && renderer->widget() == this) in ~FrameView() 156 renderer->setWidget(0); in ~FrameView() 266 if (RenderPart* renderer = m_frame->ownerRenderer()) in clear() local 267 renderer->viewCleared(); in clear() 304 RenderPart* renderer = m_frame->ownerRenderer(); in invalidateRect() local 305 if (!renderer) in invalidateRect() 309 repaintRect.move(renderer->borderLeft() + renderer->paddingLeft(), in invalidateRect() 310 renderer->borderTop() + renderer->paddingTop()); in invalidateRect() 311 renderer->repaintRectangle(repaintRect); in invalidateRect() [all …]
|
D | EventHandler.cpp | 118 RenderBox* enclosingBox = node->renderer()->enclosingBox(); in scrollAndAcceptEvent() 220 if (innerNode && innerNode->renderer() && m_mouseDownMayStartSelect) { in selectClosestWordFromMouseEvent() 221 VisiblePosition pos(innerNode->renderer()->positionForPoint(result.localPoint())); in selectClosestWordFromMouseEvent() 246 if (innerNode && innerNode->renderer() && m_mouseDownMayStartSelect) { in selectClosestWordOrLinkFromMouseEvent() 249 VisiblePosition pos(innerNode->renderer()->positionForPoint(result.localPoint())); in selectClosestWordOrLinkFromMouseEvent() 287 if (!(innerNode && innerNode->renderer() && m_mouseDownMayStartSelect)) in handleMousePressEventTripleClick() 291 VisiblePosition pos(innerNode->renderer()->positionForPoint(event.localPoint())); in handleMousePressEventTripleClick() 310 if (!(innerNode && innerNode->renderer() && m_mouseDownMayStartSelect)) in handleMousePressEventSingleClick() 326 VisiblePosition visiblePos(innerNode->renderer()->positionForPoint(event.localPoint())); in handleMousePressEventSingleClick() 432 if (event.event().button() != LeftButton || !targetNode || !targetNode->renderer()) in handleMouseDraggedEvent() [all …]
|
/external/webkit/WebCore/loader/ |
D | ImageLoader.cpp | 89 if (RenderObject* renderer = m_element->renderer()) { in setImage() local 90 if (!renderer->isImage()) in setImage() 93 toRenderImage(renderer)->resetAnimation(); in setImage() 109 if (!document->renderer()) in updateFromElement() 146 if (RenderObject* renderer = m_element->renderer()) { in updateFromElement() local 147 if (!renderer->isImage()) in updateFromElement() 150 toRenderImage(renderer)->resetAnimation(); in updateFromElement() 168 if (RenderObject* renderer = m_element->renderer()) { in notifyFinished() local 169 if (!renderer->isImage()) in notifyFinished() 172 toRenderImage(renderer)->setCachedImage(m_image.get()); in notifyFinished()
|
/external/webkit/WebCore/rendering/style/ |
D | StyleGeneratedImage.cpp | 37 IntSize StyleGeneratedImage::imageSize(const RenderObject* renderer, float multiplier) const in imageSize() argument 40 IntSize fixedSize = m_generator->fixedSize(renderer); in imageSize() 65 void StyleGeneratedImage::addClient(RenderObject* renderer) in addClient() argument 67 m_generator->addClient(renderer, IntSize()); in addClient() 70 void StyleGeneratedImage::removeClient(RenderObject* renderer) in removeClient() argument 72 m_generator->removeClient(renderer); in removeClient() 75 Image* StyleGeneratedImage::image(RenderObject* renderer, const IntSize& size) const in image() argument 77 return m_generator->image(renderer, size); in image()
|