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

Unified Diff: Source/core/rendering/style/CachedUAStyle.h

Issue 381473002: Use reference for FillLayer if possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/core/rendering/RenderView.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/CachedUAStyle.h
diff --git a/Source/core/rendering/style/CachedUAStyle.h b/Source/core/rendering/style/CachedUAStyle.h
index 10bed857f5600ba0a8c327aaaa7540c735196fa6..86289a62e5c3534e9f4f1574f433ab563668ab56 100644
--- a/Source/core/rendering/style/CachedUAStyle.h
+++ b/Source/core/rendering/style/CachedUAStyle.h
@@ -45,13 +45,11 @@ public:
private:
explicit CachedUAStyle(const RenderStyle* style)
: hasAppearance(true)
- , backgroundLayers(BackgroundFillLayer)
- , backgroundColor(StyleColor::currentColor())
+ , border(style->border())
+ , backgroundLayers(style->backgroundLayers())
+ , backgroundColor(style->backgroundColor())
{
ASSERT(style->hasAppearance());
- border = style->border();
- backgroundLayers = *style->backgroundLayers();
- backgroundColor = style->backgroundColor();
}
};
« no previous file with comments | « Source/core/rendering/RenderView.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698