Title: [157302] trunk/Source/WebCore
- Revision
- 157302
- Author
- da...@apple.com
- Date
- 2013-10-11 09:34:25 -0700 (Fri, 11 Oct 2013)
Log Message
Fix build.
* html/HTMLElement.cpp:
(WebCore::HTMLElement::translate): Do a const_cast when creating the
lineage, since it doesn't yet work with const pointers.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (157301 => 157302)
--- trunk/Source/WebCore/ChangeLog 2013-10-11 15:26:11 UTC (rev 157301)
+++ trunk/Source/WebCore/ChangeLog 2013-10-11 16:34:25 UTC (rev 157302)
@@ -1,5 +1,13 @@
-2013-10-10 Darin Adler <da...@apple.com>
+2013-10-11 Darin Adler <da...@apple.com>
+ Fix build.
+
+ * html/HTMLElement.cpp:
+ (WebCore::HTMLElement::translate): Do a const_cast when creating the
+ lineage, since it doesn't yet work with const pointers.
+
+2013-10-11 Darin Adler <da...@apple.com>
+
Do a bit of optimization and cleanup in the HTMLElement class
https://bugs.webkit.org/show_bug.cgi?id=122640
Modified: trunk/Source/WebCore/html/HTMLElement.cpp (157301 => 157302)
--- trunk/Source/WebCore/html/HTMLElement.cpp 2013-10-11 15:26:11 UTC (rev 157301)
+++ trunk/Source/WebCore/html/HTMLElement.cpp 2013-10-11 16:34:25 UTC (rev 157302)
@@ -747,7 +747,8 @@
bool HTMLElement::translate() const
{
- auto lineage = lineageOfType<HTMLElement>(this);
+ // FIXME: Need to fix lineageOfType to work with const and remove this const_cast.
+ auto lineage = lineageOfType<HTMLElement>(const_cast<HTMLElement*>(this));
for (auto element = lineage.begin(), end = lineage.end(); element != end; ++element) {
TranslateAttributeMode mode = element->translateAttributeMode();
if (mode == TranslateAttributeInherit)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes