Title: [165154] trunk/Source/WebCore
- Revision
- 165154
- Author
- [email protected]
- Date
- 2014-03-05 17:52:02 -0800 (Wed, 05 Mar 2014)
Log Message
Crash when copying content that contains <sup>.
https://bugs.webkit.org/show_bug.cgi?id=129765
<rdar://problem/16139498>
Reviewed by Benjamin Poulain.
Adding static definition of NSAttributeSuperscriptName.
* platform/mac/HTMLConverter.mm:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (165153 => 165154)
--- trunk/Source/WebCore/ChangeLog 2014-03-06 01:47:31 UTC (rev 165153)
+++ trunk/Source/WebCore/ChangeLog 2014-03-06 01:52:02 UTC (rev 165154)
@@ -1,3 +1,15 @@
+2014-03-05 Enrica Casucci <[email protected]>
+
+ Crash when copying content that contains <sup>.
+ https://bugs.webkit.org/show_bug.cgi?id=129765
+ <rdar://problem/16139498>
+
+ Reviewed by Benjamin Poulain.
+
+ Adding static definition of NSAttributeSuperscriptName.
+
+ * platform/mac/HTMLConverter.mm:
+
2014-03-05 Gavin Barraclough <[email protected]>
https://bugs.webkit.org/show_bug.cgi?id=128625
Modified: trunk/Source/WebCore/platform/mac/HTMLConverter.mm (165153 => 165154)
--- trunk/Source/WebCore/platform/mac/HTMLConverter.mm 2014-03-06 01:47:31 UTC (rev 165153)
+++ trunk/Source/WebCore/platform/mac/HTMLConverter.mm 2014-03-06 01:52:02 UTC (rev 165154)
@@ -85,8 +85,6 @@
#define NSLigatureAttributeName getNSLigatureAttributeName()
SOFT_LINK_CONSTANT(UIFoundation, NSUnderlineStyleAttributeName, NSString *)
#define NSUnderlineStyleAttributeName getNSUnderlineStyleAttributeName()
-SOFT_LINK_CONSTANT(UIFoundation, NSSuperscriptAttributeName, NSString *)
-#define NSSuperscriptAttributeName getNSSuperscriptAttributeName()
SOFT_LINK_CONSTANT(UIFoundation, NSStrikethroughStyleAttributeName, NSString *)
#define NSStrikethroughStyleAttributeName getNSStrikethroughStyleAttributeName()
SOFT_LINK_CONSTANT(UIFoundation, NSBaselineOffsetAttributeName, NSString *)
@@ -161,6 +159,11 @@
#define NSTextAlignmentJustified NSJustifiedTextAlignment
#endif
+// We don't softlink NSSuperscriptAttributeName because UIFoundation stopped exporting it.
+// This attribute is being deprecated at the API level, but internally UIFoundation
+// will continue to support it.
+static NSString *const NSSuperscriptAttributeName = @"NSSuperscript";
+
using namespace WebCore;
using namespace HTMLNames;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes