diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/precompile_core.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/precompile_core.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/precompile_core.h b/chromium/third_party/blink/renderer/core/precompile_core.h index 1cf10f38be4..30a97e9089d 100644 --- a/chromium/third_party/blink/renderer/core/precompile_core.h +++ b/chromium/third_party/blink/renderer/core/precompile_core.h @@ -6,15 +6,13 @@ #error You shouldn't include the precompiled header file more than once. #endif +#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PRECOMPILE_CORE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_PRECOMPILE_CORE_H_ #if defined(_MSC_VER) #include "third_party/blink/renderer/build/win/precompile.h" #elif defined(__APPLE__) #include "third_party/blink/renderer/build/mac/prefix.h" -#else -#error implement -#endif // In Blink a lot of operations center around dom and Document, or around // layout/rendering and LayoutObject. Those two headers are in turn pulling @@ -23,5 +21,13 @@ // and layout_object.h we only have to compile those parts once rather // than 1500 times. It can make a large difference in compilation // times (3-4 times faster). + +// Precompiling these headers has not been found to be helpful on Windows +// compiles in 2020. #include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/layout/layout_object.h" +#else +#error implement +#endif + +#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PRECOMPILE_CORE_H_ |