Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1957)

Unified Diff: Source/core/rendering/line/RenderTextInfo.h

Issue 329853006: Move RenderTextInfo and WordMeasurement into their own headers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/line/LineBreaker.h ('k') | Source/core/rendering/line/WordMeasurement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/line/RenderTextInfo.h
diff --git a/Source/core/rendering/RenderApplet.h b/Source/core/rendering/line/RenderTextInfo.h
similarity index 60%
copy from Source/core/rendering/RenderApplet.h
copy to Source/core/rendering/line/RenderTextInfo.h
index 9f740f404db67a7586768f15194c64c06c9bbb97..0ad1c598a25f4246343f875a6bd37813ef2f10fc 100644
--- a/Source/core/rendering/RenderApplet.h
+++ b/Source/core/rendering/line/RenderTextInfo.h
@@ -1,6 +1,7 @@
/*
- * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
- * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
+ * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
+ * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All right reserved.
+ * Copyright (C) 2010 Google Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -19,24 +20,28 @@
*
*/
-#ifndef RenderApplet_h
-#define RenderApplet_h
+#ifndef RenderTextInfo_h
+#define RenderTextInfo_h
-#include "core/rendering/RenderEmbeddedObject.h"
+#include "platform/text/TextBreakIterator.h"
namespace WebCore {
-class HTMLAppletElement;
+class Font;
+class RenderText;
-class RenderApplet FINAL : public RenderEmbeddedObject {
-public:
- explicit RenderApplet(HTMLAppletElement*);
- virtual ~RenderApplet();
+struct RenderTextInfo {
+ RenderTextInfo()
+ : m_text(0)
+ , m_font(0)
+ {
+ }
-private:
- virtual const char* renderName() const OVERRIDE { return "RenderApplet"; }
+ RenderText* m_text;
+ LazyLineBreakIterator m_lineBreakIterator;
+ const Font* m_font;
};
} // namespace WebCore
-#endif // RenderApplet_h
+#endif // RenderTextInfo_h
« no previous file with comments | « Source/core/rendering/line/LineBreaker.h ('k') | Source/core/rendering/line/WordMeasurement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698