Commit 883557ad authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Add EXPORT specifier in /third_party/blink/renderer/core/paint

To speed up build time on windows component build, I will enable newly added /Zc:dllexportInlines- flag. The flag is similar to -fvisibility-inlines-hidden in gcc/clang.

This flag makes inline member function is not exported if it does not have static local variables. But in few classes of chromium, we need to add additional EXPORT specifier to prevent link failure.

This is a part of effort adding EXPORT speicifer to enable the flag.

Master CL is
https://chromium-review.googlesource.com/c/chromium/src/+/1317069

This CL was uploaded by git cl split.

R=fmalita@chromium.org

Bug: 901709
Change-Id: I32a755124e41532ceebc67900047ccb4580de9c2
Reviewed-on: https://chromium-review.googlesource.com/c/1322331Reviewed-by: default avatarFlorin Malita <fmalita@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606040}
parent ee221c1e
......@@ -227,7 +227,7 @@ class CORE_EXPORT FragmentData {
void DestroyTail();
// Contains rare data that that is not needed on all fragments.
struct RareData {
struct CORE_EXPORT RareData {
USING_FAST_MALLOC(RareData);
public:
......
......@@ -93,8 +93,8 @@ class CORE_EXPORT NGPaintFragment : public RefCounted<NGPaintFragment>,
NGPaintFragment* current_;
};
iterator begin() const { return iterator(first_); }
iterator end() const { return iterator(nullptr); }
CORE_EXPORT iterator begin() const { return iterator(first_); }
CORE_EXPORT iterator end() const { return iterator(nullptr); }
// Returns the first |NGPaintFragment| in |FragmentRange| as STL container.
// It is error to call |front()| for empty range.
......@@ -109,7 +109,7 @@ class CORE_EXPORT NGPaintFragment : public RefCounted<NGPaintFragment>,
// Returns number of fragments in this range. The complexity is O(n) where n
// is number of elements.
wtf_size_t size() const;
bool IsEmpty() const { return !first_; }
CORE_EXPORT bool IsEmpty() const { return !first_; }
void ToList(Vector<NGPaintFragment*, 16>*) const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment