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

Unified Diff: Source/core/page/Frame.cpp

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: Source/core/page/Frame.cpp
diff --git a/Source/core/page/Frame.cpp b/Source/core/page/Frame.cpp
index 1645d7c3e89c6415a57c5213761fcb07169074ce..98930c88cc740cc198f8e2ea0966184caf257b12 100644
--- a/Source/core/page/Frame.cpp
+++ b/Source/core/page/Frame.cpp
@@ -452,7 +452,7 @@ PassRefPtr<Range> Frame::rangeForPoint(const IntPoint& framePoint)
return 0;
}
-void Frame::createView(const IntSize& viewportSize, const Color& backgroundColor, bool transparent,
+void Frame::createView(const IntSize& viewportSize, const StyleColor& backgroundColor, bool transparent,
const IntSize& fixedLayoutSize, bool useFixedLayout, ScrollbarMode horizontalScrollbarMode, bool horizontalLock,
ScrollbarMode verticalScrollbarMode, bool verticalLock)
{
@@ -479,7 +479,7 @@ void Frame::createView(const IntSize& viewportSize, const Color& backgroundColor
setView(frameView);
if (backgroundColor.isValid())
- frameView->updateBackgroundRecursively(backgroundColor, transparent);
+ frameView->updateBackgroundRecursively(backgroundColor.color(), transparent);
if (isMainFrame)
frameView->setParentVisible(true);

Powered by Google App Engine
This is Rietveld 408576698