Changeset 156144 in webkit
- Timestamp:
- Sep 20, 2013, 1:59:25 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r156142 r156144 1 2013-09-20 Antti Koivisto <antti@apple.com> 2 3 Add covariant RenderElement* Element::renderer() 4 https://bugs.webkit.org/show_bug.cgi?id=121638 5 6 Reviewed by Andreas Kling. 7 8 Also add isRenderElement() test and casting functions. 9 1 10 2013-09-19 Anders Carlsson <andersca@apple.com> 2 11 -
trunk/Source/WebCore/accessibility/AccessibilityScrollView.cpp
r155955 r156144 32 32 #include "FrameView.h" 33 33 #include "HTMLFrameOwnerElement.h" 34 #include "RenderElement.h" 34 35 #include "ScrollView.h" 35 36 #include "Widget.h" -
trunk/Source/WebCore/accessibility/AccessibilitySpinButton.cpp
r156121 r156144 28 28 29 29 #include "AXObjectCache.h" 30 #include "Render Object.h"30 #include "RenderElement.h" 31 31 32 32 namespace WebCore { -
trunk/Source/WebCore/accessibility/atk/WebKitAccessibleInterfaceTable.cpp
r152440 r156144 41 41 #include "HTMLTableCaptionElement.h" 42 42 #include "HTMLTableElement.h" 43 #include "Render Object.h"43 #include "RenderElement.h" 44 44 #include "WebKitAccessibleInterfaceText.h" 45 45 #include "WebKitAccessibleWrapperAtk.h" … … 216 216 HTMLTableCaptionElement* caption = toHTMLTableElement(node)->caption(); 217 217 if (caption) 218 return AccessibilityObject::firstAccessibleObjectFromNode(caption->renderer()-> node())->wrapper();218 return AccessibilityObject::firstAccessibleObjectFromNode(caption->renderer()->element())->wrapper(); 219 219 } 220 220 } -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r156121 r156144 1290 1290 push(@customGetterContent, " if (!IMPL->renderer() || !IMPL->renderer()->isImage())\n"); 1291 1291 push(@customGetterContent, " return nil;\n"); 1292 $implIncludes{"Render Object.h"} = 1;1292 $implIncludes{"RenderElement.h"} = 1; 1293 1293 } 1294 1294 } -
trunk/Source/WebCore/bridge/qt/qt_pixmapruntime.cpp
r155429 r156144 31 31 #include "JSRetainPtr.h" 32 32 #include "JavaScript.h" 33 #include "RenderElement.h" 33 34 #include "StillImageQt.h" 34 35 #include <QBuffer> -
trunk/Source/WebCore/css/SelectorChecker.cpp
r156121 r156144 49 49 #include "NodeRenderStyle.h" 50 50 #include "Page.h" 51 #include "Render Object.h"51 #include "RenderElement.h" 52 52 #include "RenderScrollbar.h" 53 53 #include "RenderStyle.h" -
trunk/Source/WebCore/dom/ContainerNode.h
r156121 r156144 34 34 35 35 class FloatPoint; 36 36 37 37 typedef void (*NodeCallback)(Node*, unsigned); 38 38 -
trunk/Source/WebCore/dom/Element.h
r156121 r156144 45 45 class Locale; 46 46 class PseudoElement; 47 class RenderElement; 47 48 class RenderRegion; 48 49 class ShadowRoot; … … 128 129 #endif 129 130 131 RenderElement* renderer() const; 132 130 133 bool hasAttribute(const QualifiedName&) const; 131 134 const AtomicString& getAttribute(const QualifiedName&) const; -
trunk/Source/WebCore/dom/PseudoElement.cpp
r156121 r156144 30 30 #include "ContentData.h" 31 31 #include "InspectorInstrumentation.h" 32 #include "Render Object.h"32 #include "RenderElement.h" 33 33 #include "RenderQuote.h" 34 34 … … 79 79 void PseudoElement::didAttachRenderers() 80 80 { 81 Render Object* renderer = this->renderer();81 RenderElement* renderer = this->renderer(); 82 82 if (!renderer || !renderer->style()->regionThread().isEmpty()) 83 83 return; -
trunk/Source/WebCore/editing/SplitTextNodeContainingElementCommand.cpp
r156121 r156144 28 28 29 29 #include "Element.h" 30 #include "RenderElement.h" 30 31 #include "Text.h" 31 #include "RenderObject.h"32 32 #include <wtf/Assertions.h> 33 33 … … 54 54 return; 55 55 56 Render Object* parentRenderer = parent->renderer();56 RenderElement* parentRenderer = parent->renderer(); 57 57 if (!parentRenderer || !parentRenderer->isInline()) { 58 58 wrapContentsInDummySpan(parent); -
trunk/Source/WebCore/editing/TypingCommand.cpp
r156121 r156144 38 38 #include "InsertParagraphSeparatorCommand.h" 39 39 #include "InsertTextCommand.h" 40 #include "Render Object.h"40 #include "RenderElement.h" 41 41 #include "TextIterator.h" 42 42 #include "VisiblePosition.h" -
trunk/Source/WebCore/html/ImageDocument.cpp
r156121 r156144 43 43 #include "Page.h" 44 44 #include "RawDataDocumentParser.h" 45 #include "RenderElement.h" 45 46 #include "ResourceBuffer.h" 46 47 #include "Settings.h" -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r155894 r156144 51 51 #include "PingLoader.h" 52 52 #include "PlatformStrategies.h" 53 #include "RenderElement.h" 53 54 #include "ResourceLoadScheduler.h" 54 55 #include "ScriptController.h" -
trunk/Source/WebCore/page/PageSerializer.cpp
r156121 r156144 51 51 #include "MarkupAccumulator.h" 52 52 #include "Page.h" 53 #include "RenderElement.h" 53 54 #include "StyleCachedImage.h" 54 55 #include "StyleImage.h" -
trunk/Source/WebCore/plugins/gtk/PluginViewGtk.cpp
r154122 r156144 59 59 #include "PluginMainThreadScheduler.h" 60 60 #include "PluginPackage.h" 61 #include "Render Object.h"61 #include "RenderElement.h" 62 62 #include "Settings.h" 63 63 #include "SpatialNavigation.h" -
trunk/Source/WebCore/rendering/RenderElement.h
r156121 r156144 48 48 }; 49 49 50 inline RenderElement& toRenderElement(RenderObject& object) 51 { 52 ASSERT_WITH_SECURITY_IMPLICATION(object.isRenderElement()); 53 return static_cast<RenderElement&>(object); 54 } 55 56 inline const RenderElement& toRenderElement(const RenderObject& object) 57 { 58 ASSERT_WITH_SECURITY_IMPLICATION(object.isRenderElement()); 59 return static_cast<const RenderElement&>(object); 60 } 61 62 inline RenderElement* toRenderElement(RenderObject* object) 63 { 64 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderElement()); 65 return static_cast<RenderElement*>(object); 66 } 67 68 inline const RenderElement* toRenderElement(const RenderObject* object) 69 { 70 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderElement()); 71 return static_cast<const RenderElement*>(object); 72 } 73 74 // This will catch anyone doing an unnecessary cast. 75 void toRenderElement(const RenderElement*); 76 void toRenderElement(const RenderElement&); 77 78 inline RenderElement* Element::renderer() const 79 { 80 return toRenderElement(Node::renderer()); 81 } 82 50 83 } // namespace WebCore 51 84 -
trunk/Source/WebCore/rendering/RenderObject.h
r156121 r156144 343 343 bool isPseudoElement() const { return node() && node()->isPseudoElement(); } 344 344 345 bool isRenderElement() const { return !isText(); } 345 346 virtual bool isBoxModelObject() const { return false; } 346 347 virtual bool isCounter() const { return false; } -
trunk/Source/WebCore/svg/SVGAnimatedColor.cpp
r156121 r156144 24 24 25 25 #include "ColorDistance.h" 26 #include "Render Object.h"26 #include "RenderElement.h" 27 27 #include "SVGAnimateElement.h" 28 28 #include "SVGColor.h" … … 53 53 ASSERT(targetElement); 54 54 55 if (Render Object* targetRenderer = targetElement->renderer())55 if (RenderElement* targetRenderer = targetElement->renderer()) 56 56 color = targetRenderer->style()->visitedDependentColor(CSSPropertyColor); 57 57 else -
trunk/Source/WebCore/svg/SVGLocatable.cpp
r156121 r156144 26 26 #include "SVGLocatable.h" 27 27 28 #include "Render Object.h"28 #include "RenderElement.h" 29 29 #include "SVGException.h" 30 30 #include "SVGGraphicsElement.h" -
trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.cpp
r156121 r156144 29 29 #include "Filter.h" 30 30 #include "GraphicsContext.h" 31 #include "Render Object.h"31 #include "RenderElement.h" 32 32 #include "RenderTreeAsText.h" 33 33 #include "SVGElement.h" … … 75 75 srcRect.setSize(m_image->size()); 76 76 m_preserveAspectRatio.transformRect(paintRect, srcRect); 77 } else if (Render Object* renderer = referencedRenderer())77 } else if (RenderElement* renderer = referencedRenderer()) 78 78 srcRect = svgFilter->absoluteTransform().mapRect(renderer->repaintRectInLocalCoordinates()); 79 79 … … 85 85 } 86 86 87 Render Object* FEImage::referencedRenderer() const87 RenderElement* FEImage::referencedRenderer() const 88 88 { 89 89 if (!m_document) -
trunk/Source/WebCore/svg/graphics/filters/SVGFEImage.h
r156121 r156144 32 32 class Document; 33 33 class Image; 34 class Render Object;34 class RenderElement; 35 35 36 36 class FEImage : public FilterEffect { … … 55 55 FEImage(Filter*, PassRefPtr<Image>, const SVGPreserveAspectRatio&); 56 56 FEImage(Filter*, Document*, const String&, const SVGPreserveAspectRatio&); 57 Render Object* referencedRenderer() const;57 RenderElement* referencedRenderer() const; 58 58 59 59 RefPtr<Image> m_image;
Note:
See TracChangeset
for help on using the changeset viewer.