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

Unified Diff: Source/WebCore/ChangeLog

Side-by-side diff isn't available for this file because of its large size.
Issue 11471034: Merge 136878 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « LayoutTests/userscripts/insert-stylesheets-expected.txt ('k') | Source/WebCore/WebCore.order » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/ChangeLog
===================================================================
--- Source/WebCore/ChangeLog (revision 136959)
+++ Source/WebCore/ChangeLog (working copy)
@@ -1,3 +1,31 @@
+2012-12-06 Tony Chang <tony@chromium.org>
+
+ REGRESSION(r135082): Restore the ability to insert author level style sheets from script
+ https://bugs.webkit.org/show_bug.cgi?id=104042
+
+ Reviewed by Antti Koivisto.
+
+ Add DocumentStyleSheetCollection::addAuthorSheet so embedders can allow scripts
+ to insert author level styles. Expose the method to window.interals for testing.
+
+ Test: userscripts/insert-stylesheets.html
+
+ * WebCore.exp.in: Update exports for Internals.cpp.
+ * WebCore.order: Update exports for Internals.cpp.
+ * dom/DocumentStyleSheetCollection.cpp:
+ (WebCore::DocumentStyleSheetCollection::~DocumentStyleSheetCollection):
+ (WebCore::DocumentStyleSheetCollection::addAuthorSheet): Add the stylesheet and force a style recalc.
+ (WebCore::DocumentStyleSheetCollection::updateActiveStyleSheets): Include author level styles.
+ (WebCore::DocumentStyleSheetCollection::reportMemoryUsage): Include author styles.
+ * dom/DocumentStyleSheetCollection.h:
+ (WebCore::DocumentStyleSheetCollection::documentAuthorStyleSheets): Accessor.
+ (DocumentStyleSheetCollection): Keep track of author styles added by script.
+ * testing/Internals.cpp:
+ (WebCore::Internals::insertAuthorCSS): Testing addAuthorSheet.
+ (WebCore::Internals::insertUserCSS): Testing addUserSheet.
+ * testing/Internals.h:
+ * testing/Internals.idl: Add addAuthorSheet and addUserSheet.
+
2012-11-20 Tony Chang <tony@chromium.org>
When calling DocumentStyleSheetCollection::addUserSheet, pass in a user sheet
« no previous file with comments | « LayoutTests/userscripts/insert-stylesheets-expected.txt ('k') | Source/WebCore/WebCore.order » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698