Chromium Code Reviews| Index: Source/core/frame/NavigatorCPU.cpp |
| diff --git a/Source/core/css/resolver/StyleResolverParentScope.cpp b/Source/core/frame/NavigatorCPU.cpp |
| similarity index 57% |
| copy from Source/core/css/resolver/StyleResolverParentScope.cpp |
| copy to Source/core/frame/NavigatorCPU.cpp |
| index bde3a362aed64146b76b1b703260b6e6605bdfa7..6920b6d8f1b59f94d26b4d8819800840434f3b88 100644 |
| --- a/Source/core/css/resolver/StyleResolverParentScope.cpp |
| +++ b/Source/core/frame/NavigatorCPU.cpp |
| @@ -3,11 +3,15 @@ |
| // found in the LICENSE file. |
| #include "config.h" |
| +#include "core/frame/NavigatorCPU.h" |
| -#include "core/css/resolver/StyleResolverParentScope.h" |
| +#include "public/platform/Platform.h" |
| namespace WebCore { |
| -StyleResolverParentScope* StyleResolverParentScope::s_currentScope = 0; |
| +unsigned NavigatorCPU::cores() |
| +{ |
| + return blink::Platform::current()->numberOfProcessors(); |
|
Rik
2014/05/18 23:18:30
Do you want to limit the returned number to limit
|
| +} |
| } // namespace WebCore |