Title: [131578] trunk/Source/WebCore
- Revision
- 131578
- Author
- apav...@chromium.org
- Date
- 2012-10-17 03:24:41 -0700 (Wed, 17 Oct 2012)
Log Message
Web Inspector: Avoid style updates when retrieving the inline stylesheet text
https://bugs.webkit.org/show_bug.cgi?id=99576
Reviewed by Vsevolod Vlasov.
Avoid using innerText() to retrieve inline stylesheet text, which may result in style and layout updates.
* inspector/InspectorStyleSheet.cpp:
(WebCore::InspectorStyleSheet::inlineStyleSheetText):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (131577 => 131578)
--- trunk/Source/WebCore/ChangeLog 2012-10-17 10:20:11 UTC (rev 131577)
+++ trunk/Source/WebCore/ChangeLog 2012-10-17 10:24:41 UTC (rev 131578)
@@ -1,3 +1,15 @@
+2012-10-17 Alexander Pavlov <apav...@chromium.org>
+
+ Web Inspector: Avoid style updates when retrieving the inline stylesheet text
+ https://bugs.webkit.org/show_bug.cgi?id=99576
+
+ Reviewed by Vsevolod Vlasov.
+
+ Avoid using innerText() to retrieve inline stylesheet text, which may result in style and layout updates.
+
+ * inspector/InspectorStyleSheet.cpp:
+ (WebCore::InspectorStyleSheet::inlineStyleSheetText):
+
2012-10-17 Patrick Gansterer <par...@webkit.org>
Build fix for WinCE after r131365.
Modified: trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp (131577 => 131578)
--- trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp 2012-10-17 10:20:11 UTC (rev 131577)
+++ trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp 2012-10-17 10:24:41 UTC (rev 131578)
@@ -1266,7 +1266,7 @@
#endif
)
return false;
- *result = ownerElement->innerText();
+ *result = ownerElement->textContent();
return true;
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes