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

Unified Diff: Source/web/WebDocument.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 months 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/web/PopupMenuImpl.cpp ('k') | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebDocument.cpp
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp
index 764985e8c5324408924d6320d256f0fea11a36fa..b27f0841d34ce7727117c4dbb5c5de0b932df0b0 100644
--- a/Source/web/WebDocument.cpp
+++ b/Source/web/WebDocument.cpp
@@ -217,7 +217,7 @@ void WebDocument::insertStyleSheet(const WebString& sourceCode)
ASSERT(document);
RefPtrWillBeRawPtr<StyleSheetContents> parsedSheet = StyleSheetContents::create(CSSParserContext(*document, 0));
parsedSheet->parseString(sourceCode);
- document->styleEngine()->addAuthorSheet(parsedSheet);
+ document->styleEngine().addAuthorSheet(parsedSheet);
}
void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors)
@@ -298,13 +298,13 @@ void WebDocument::beginExitTransition(const WebString& cssSelector, bool exitToN
RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
if (!exitToNativeApp)
document->hideTransitionElements(cssSelector);
- document->styleEngine()->setExitTransitionStylesheetsEnabled(true);
+ document->styleEngine().setExitTransitionStylesheetsEnabled(true);
}
void WebDocument::revertExitTransition()
{
RefPtrWillBeRawPtr<Document> document = unwrap<Document>();
- document->styleEngine()->setExitTransitionStylesheetsEnabled(false);
+ document->styleEngine().setExitTransitionStylesheetsEnabled(false);
}
void WebDocument::hideTransitionElements(const WebString& cssSelector)
« no previous file with comments | « Source/web/PopupMenuImpl.cpp ('k') | Source/web/tests/WebDocumentTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698