Changeset 156093 in webkit
- Timestamp:
- Sep 19, 2013, 6:36:02 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r156092 r156093 1 2013-09-19 Antti Koivisto <antti@apple.com> 2 3 [CTTE] Hide nonPseudoNode and generatingNode, replace with Element versions 4 https://bugs.webkit.org/show_bug.cgi?id=121606 5 6 Reviewed by Andreas Kling. 7 1 8 2013-09-19 Andreas Kling <akling@apple.com> 2 9 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r156090 r156093 4316 4316 4317 4317 if (!box->renderer().nonPseudoNode()) 4318 return createLegacyEditingPosition(nonPseudo Node(), start ? caretMinOffset() : caretMaxOffset());4318 return createLegacyEditingPosition(nonPseudoElement(), start ? caretMinOffset() : caretMaxOffset()); 4319 4319 4320 4320 if (!box->isInlineTextBox()) … … 4346 4346 4347 4347 // If this is an anonymous renderer, we just recur normally 4348 Node* childNode = child->nonPseudoNode();4349 if (!child Node)4348 Element* childElement= child->nonPseudoElement(); 4349 if (!childElement) 4350 4350 return child->positionForPoint(pointInChildCoordinates); 4351 4351 … … 4364 4364 LayoutUnit logicalLeft = parent->isHorizontalWritingMode() ? pointInChildCoordinates.x() : pointInChildCoordinates.y(); 4365 4365 if (logicalLeft < childMiddle) 4366 return ancestor->createVisiblePosition(child Node->nodeIndex(), DOWNSTREAM);4367 return ancestor->createVisiblePosition(child Node->nodeIndex() + 1, UPSTREAM);4366 return ancestor->createVisiblePosition(childElement->nodeIndex(), DOWNSTREAM); 4367 return ancestor->createVisiblePosition(childElement->nodeIndex() + 1, UPSTREAM); 4368 4368 } 4369 4369 -
trunk/Source/WebCore/rendering/RenderBox.cpp
r155802 r156093 4072 4072 // no children...return this render object's element, if there is one, and offset 0 4073 4073 if (!firstChild()) 4074 return createVisiblePosition(nonPseudo Node() ? firstPositionInOrBeforeNode(nonPseudoNode()) : Position());4075 4076 if (isTable() && nonPseudo Node()) {4074 return createVisiblePosition(nonPseudoElement() ? firstPositionInOrBeforeNode(nonPseudoElement()) : Position()); 4075 4076 if (isTable() && nonPseudoElement()) { 4077 4077 LayoutUnit right = contentWidth() + borderAndPaddingWidth(); 4078 4078 LayoutUnit bottom = contentHeight() + borderAndPaddingHeight(); … … 4080 4080 if (point.x() < 0 || point.x() > right || point.y() < 0 || point.y() > bottom) { 4081 4081 if (point.x() <= right / 2) 4082 return createVisiblePosition(firstPositionInOrBeforeNode(nonPseudo Node()));4083 return createVisiblePosition(lastPositionInOrAfterNode(nonPseudo Node()));4082 return createVisiblePosition(firstPositionInOrBeforeNode(nonPseudoElement())); 4083 return createVisiblePosition(lastPositionInOrAfterNode(nonPseudoElement())); 4084 4084 } 4085 4085 } … … 4149 4149 return closestRenderer->positionForPoint(adjustedPoint - closestRenderer->locationOffset()); 4150 4150 4151 return createVisiblePosition(firstPositionInOrBeforeNode(nonPseudo Node()));4151 return createVisiblePosition(firstPositionInOrBeforeNode(nonPseudoElement())); 4152 4152 } 4153 4153 -
trunk/Source/WebCore/rendering/RenderLayerModelObject.h
r155374 r156093 53 53 // This is null for anonymous renderers. 54 54 Element* element() const { return toElement(RenderObject::node()); } 55 Element* nonPseudoElement() const { return toElement(RenderObject::nonPseudoNode()); } 56 Element* generatingElement() const { return toElement(RenderObject::generatingNode()); } 55 57 56 58 protected: … … 64 66 65 67 void node() const WTF_DELETED_FUNCTION; 68 void nonPseudoNode() const WTF_DELETED_FUNCTION; 69 void generatingNode() const WTF_DELETED_FUNCTION; 66 70 67 71 RenderLayer* m_layer; -
trunk/Source/WebCore/rendering/RenderRegion.h
r155963 r156093 154 154 LayoutRect rectFlowPortionForBox(const RenderBox*, const LayoutRect&) const; 155 155 156 Element* generatingElement() const { return toElement(RenderObject::generatingNode()); }157 158 156 protected: 159 157 RenderOverflow* ensureOverflowForBox(const RenderBox*);
Note:
See TracChangeset
for help on using the changeset viewer.