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

Unified Diff: Source/core/testing/Internals.cpp

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 years, 1 month 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
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 5cacf1c22cefcf96bf49b194a38d93b2f97319c2..3820cdfe3056c402568217f209b56d9779b20a12 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -1878,28 +1878,6 @@ void Internals::allowRoundingHacks() const
TextRun::setAllowsRoundingHacks(true);
}
-void Internals::insertAuthorCSS(Document* document, const String& css) const
-{
- if (!document)
- return;
-
- RefPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(*document);
- parsedSheet->setIsUserStyleSheet(false);
- parsedSheet->parseString(css);
- document->styleEngine()->addAuthorSheet(parsedSheet);
-}
-
-void Internals::insertUserCSS(Document* document, const String& css) const
-{
- if (!document)
- return;
-
- RefPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(*document);
- parsedSheet->setIsUserStyleSheet(true);
- parsedSheet->parseString(css);
- document->styleEngine()->addUserSheet(parsedSheet);
-}
-
String Internals::counterValue(Element* element)
{
if (!element)
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698