Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / RenderQuote.h
index a7e4b08..fda6722 100644 (file)
@@ -31,21 +31,21 @@ namespace blink {
 
 class Document;
 
-class RenderQuote FINAL : public RenderInline {
+class RenderQuote final : public RenderInline {
 public:
     RenderQuote(Document*, const QuoteType);
     virtual ~RenderQuote();
-    virtual void trace(Visitor*) OVERRIDE;
+    virtual void trace(Visitor*) override;
     void attachQuote();
 
 private:
     void detachQuote();
 
-    virtual void willBeDestroyed() OVERRIDE;
-    virtual const char* renderName() const OVERRIDE { return "RenderQuote"; };
-    virtual bool isQuote() const OVERRIDE { return true; };
-    virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE;
-    virtual void willBeRemovedFromTree() OVERRIDE;
+    virtual void willBeDestroyed() override;
+    virtual const char* renderName() const override { return "RenderQuote"; };
+    virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectQuote || RenderInline::isOfType(type); }
+    virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
+    virtual void willBeRemovedFromTree() override;
 
     String computeText() const;
     void updateText();
@@ -53,6 +53,8 @@ private:
     void updateDepth();
     bool isAttached() { return m_attached; }
 
+    RenderTextFragment* findFragmentChild() const;
+
     QuoteType m_type;
     int m_depth;
     RawPtrWillBeMember<RenderQuote> m_next;