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

Unified Diff: Source/core/dom/FirstLetterHelper.h

Issue 571603003: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
Index: Source/core/dom/FirstLetterHelper.h
diff --git a/Source/core/css/resolver/FilterOperationResolver.h b/Source/core/dom/FirstLetterHelper.h
similarity index 65%
copy from Source/core/css/resolver/FilterOperationResolver.h
copy to Source/core/dom/FirstLetterHelper.h
index 07399e34dd550c58372f84eb165e8b9bb25805f6..2d0872052da26945059bed367e73774a749601fd 100644
--- a/Source/core/css/resolver/FilterOperationResolver.h
+++ b/Source/core/dom/FirstLetterHelper.h
@@ -1,6 +1,9 @@
/*
Julien - ping for review 2014/10/01 21:14:47 This should be uploaded without copy detection as
dsinclair 2014/10/04 02:01:34 Acknowledged.
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
+ * (C) 1999 Antti Koivisto (koivisto@kde.org)
+ * (C) 2007 David Smith (catfish.man@gmail.com)
* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
+ * Copyright (C) Research In Motion Limited 2010. 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 +22,25 @@
*
*/
-#ifndef FilterOperationResolver_h
-#define FilterOperationResolver_h
+#ifndef FirstLetterHelper_h
+#define FirstLetterHelper_h
-#include "core/css/resolver/StyleResolverState.h"
-#include "platform/graphics/filters/FilterOperations.h"
-#include "platform/heap/Handle.h"
+#include "wtf/text/WTFString.h"
namespace blink {
-class CSSToLengthConversionData;
-class CSSValue;
+class Element;
+class RenderObject;
-class FilterOperationResolver {
- STATIC_ONLY(FilterOperationResolver);
+class FirstLetterHelper {
public:
- static bool createFilterOperations(CSSValue* inValue, const CSSToLengthConversionData&, FilterOperations& outOperations, StyleResolverState&);
+ static RenderObject* firstLetterTextRenderer(const Element&);
+ static unsigned firstLetterLength(const String&);
+private:
+ FirstLetterHelper();
Julien - ping for review 2014/10/01 21:14:47 Maybe we should also use MAKE_NON_COPYABLE? Altern
dsinclair 2014/10/04 02:01:34 That was the macro I couldn't remember, thanks. (W
+
};
} // namespace blink
-#endif // FilterOperationResolver_h
+#endif // FirstLetterHelper_h

Powered by Google App Engine
This is Rietveld 408576698