+2014-08-21 Tim Horton <timothy_horton@apple.com>
+
+ Revert r172831, it broke the Windows build.
+
+ * wtf/ExportMacros.h:
+
2014-08-21 Zalan Bujtas <zalan@apple.com>
Enable SATURATED_LAYOUT_ARITHMETIC.
#endif // USE(EXPORT_MACROS)
+// WTF_TESTING (and WEBCORE_TESTING in PlatformExportMacros.h) is used for
+// exporting symbols which are referred from WebCoreTestSupport library.
+// Since the set of APIs is common between ports,
+// it is rather worth annotating inside the code than maintaining port specific export lists.
+#if USE(EXPORT_MACROS_FOR_TESTING)
+
+#if defined(WTF_IS_LINKED_IN_SAME_BINARY)
+#define WTF_TESTING WTF_EXPORT_DECLARATION
+#else
+#define WTF_TESTING WTF_IMPORT_DECLARATION
+#endif
+
+#else // USE(EXPORT_MACROS_FOR_TESTING)
+
+#define WTF_TESTING
+
+#endif // USE(EXPORT_MACROS_FOR_TESTING)
+
#if defined(WTF_IS_LINKED_IN_SAME_BINARY)
#define WTF_EXPORT_PRIVATE WTF_EXPORT
#else
+2014-08-21 Tim Horton <timothy_horton@apple.com>
+
+ Revert r172831, it broke the Windows build.
+
2014-08-21 Ryuan Choi <ryuan.choi@samsung.com>
Unreviewed build fix when RUBBER_BANDING is not enabled.
{
public:
static PassRef<Geolocation> create(ScriptExecutionContext*);
- WEBCORE_EXPORT ~Geolocation();
+ ~Geolocation();
#if PLATFORM(IOS)
virtual bool canSuspend() const override;
virtual void suspend(ReasonForSuspension) override;
virtual void resume() override;
- WEBCORE_EXPORT void resetAllGeolocationPermission();
+ void resetAllGeolocationPermission();
#endif // PLATFORM(IOS)
Document* document() const;
- WEBCORE_EXPORT Frame* frame() const;
+ Frame* frame() const;
void getCurrentPosition(PassRefPtr<PositionCallback>, PassRefPtr<PositionErrorCallback>, PassRefPtr<PositionOptions>);
int watchPosition(PassRefPtr<PositionCallback>, PassRefPtr<PositionErrorCallback>, PassRefPtr<PositionOptions>);
void clearWatch(int watchID);
- WEBCORE_EXPORT void setIsAllowed(bool);
+ void setIsAllowed(bool);
bool isAllowed() const { return m_allowGeolocation == Yes; }
void positionChanged();
void requestPermission(Geolocation*);
void cancelPermissionRequest(Geolocation*);
- WEBCORE_EXPORT void positionChanged(GeolocationPosition*);
- WEBCORE_EXPORT void errorOccurred(GeolocationError*);
+ void positionChanged(GeolocationPosition*);
+ void errorOccurred(GeolocationError*);
GeolocationPosition* lastPosition();
GeolocationClient* client() { return m_client; }
- WEBCORE_EXPORT static const char* supplementName();
+ static const char* supplementName();
static GeolocationController* from(Page* page) { return static_cast<GeolocationController*>(Supplement<Page>::from(page, supplementName())); }
private:
class IDBDatabaseBackend : public RefCounted<IDBDatabaseBackend> {
public:
- WEBCORE_EXPORT static PassRefPtr<IDBDatabaseBackend> create(const String& name, const String& uniqueIdentifier, IDBFactoryBackendInterface*, IDBServerConnection&);
- WEBCORE_EXPORT ~IDBDatabaseBackend();
+ static PassRefPtr<IDBDatabaseBackend> create(const String& name, const String& uniqueIdentifier, IDBFactoryBackendInterface*, IDBServerConnection&);
+ ~IDBDatabaseBackend();
IDBServerConnection& serverConnection() { return m_serverConnection.get(); }
void addIndex(int64_t objectStoreId, const IDBIndexMetadata&, int64_t newMaxIndexId);
void removeIndex(int64_t objectStoreId, int64_t indexId);
- WEBCORE_EXPORT void openConnection(PassRefPtr<IDBCallbacks>, PassRefPtr<IDBDatabaseCallbacks>, int64_t transactionId, uint64_t version);
- WEBCORE_EXPORT void deleteDatabase(PassRefPtr<IDBCallbacks>);
+ void openConnection(PassRefPtr<IDBCallbacks>, PassRefPtr<IDBDatabaseCallbacks>, int64_t transactionId, uint64_t version);
+ void deleteDatabase(PassRefPtr<IDBCallbacks>);
// IDBDatabaseBackend
void createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath&, bool autoIncrement);
typedef HashMap<int64_t, IDBObjectStoreMetadata> ObjectStoreMap;
ObjectStoreMap objectStores;
- WEBCORE_EXPORT IDBDatabaseMetadata isolatedCopy() const;
+ IDBDatabaseMetadata isolatedCopy() const;
};
} // namespace WebCore
return adoptRef(new IDBKey(array, sizeEstimate));
}
- WEBCORE_EXPORT ~IDBKey();
+ ~IDBKey();
// In order of the least to the highest precedent in terms of sort order.
enum Type {
};
Type type() const { return m_type; }
- WEBCORE_EXPORT bool isValid() const;
+ bool isValid() const;
const KeyArray& array() const
{
{
}
- WEBCORE_EXPORT IDBKeyData(const IDBKey*);
+ IDBKeyData(const IDBKey*);
static IDBKeyData minimum()
{
return result;
}
- WEBCORE_EXPORT PassRefPtr<IDBKey> maybeCreateIDBKey() const;
+ PassRefPtr<IDBKey> maybeCreateIDBKey() const;
IDBKeyData isolatedCopy() const;
- WEBCORE_EXPORT void encode(KeyedEncoder&) const;
- WEBCORE_EXPORT static bool decode(KeyedDecoder&, IDBKeyData&);
+ void encode(KeyedEncoder&) const;
+ static bool decode(KeyedDecoder&, IDBKeyData&);
// compare() has the same semantics as strcmp().
// - Returns negative if this IDBKeyData is less than other.
// - Returns positive if this IDBKeyData is greater than other.
// - Returns zero if this IDBKeyData is equal to other.
- WEBCORE_EXPORT int compare(const IDBKeyData& other) const;
+ int compare(const IDBKeyData& other) const;
void setArrayValue(const Vector<IDBKeyData>&);
void setStringValue(const String&);
void setDateValue(double);
- WEBCORE_EXPORT void setNumberValue(double);
+ void setNumberValue(double);
#ifndef NDEBUG
- WEBCORE_EXPORT String loggingString() const;
+ String loggingString() const;
#endif
IDBKey::Type type;
class IDBKeyPath {
public:
IDBKeyPath() : m_type(NullType) { }
- WEBCORE_EXPORT explicit IDBKeyPath(const String&);
- WEBCORE_EXPORT explicit IDBKeyPath(const Vector<String>& array);
+ explicit IDBKeyPath(const String&);
+ explicit IDBKeyPath(const Vector<String>& array);
enum Type {
NullType = 0,
IDBKeyPath isolatedCopy() const;
- WEBCORE_EXPORT void encode(KeyedEncoder&) const;
- WEBCORE_EXPORT static bool decode(KeyedDecoder&, IDBKeyPath&);
+ void encode(KeyedEncoder&) const;
+ static bool decode(KeyedDecoder&, IDBKeyPath&);
private:
Type m_type;
static PassRefPtr<IDBKeyRange> bound(ScriptExecutionContext* context, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, ExceptionCode& ec) { return bound(context, lower, upper, lowerOpen, false, ec); }
static PassRefPtr<IDBKeyRange> bound(ScriptExecutionContext*, const Deprecated::ScriptValue& lower, const Deprecated::ScriptValue& upper, bool lowerOpen, bool upperOpen, ExceptionCode&);
- WEBCORE_EXPORT bool isOnlyKey() const;
+ bool isOnlyKey() const;
private:
IDBKeyRange(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, LowerBoundType lowerType, UpperBoundType upperType);
IDBKeyRangeData isolatedCopy() const;
- WEBCORE_EXPORT PassRefPtr<IDBKeyRange> maybeCreateIDBKeyRange() const;
+ PassRefPtr<IDBKeyRange> maybeCreateIDBKeyRange() const;
- WEBCORE_EXPORT bool isExactlyOneKey() const;
+ bool isExactlyOneKey() const;
bool isNull;
class Notification final : public RefCounted<Notification>, public ActiveDOMObject, public EventTargetWithInlineData {
WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT Notification();
+ Notification();
#if ENABLE(LEGACY_NOTIFICATIONS)
static PassRef<Notification> create(const String& title, const String& body, const String& iconURI, ScriptExecutionContext*, ExceptionCode&, PassRefPtr<NotificationCenter> provider);
#endif
static PassRef<Notification> create(ScriptExecutionContext&, const String& title, const Dictionary& options);
#endif
- WEBCORE_EXPORT virtual ~Notification();
+ virtual ~Notification();
void show();
#if ENABLE(LEGACY_NOTIFICATIONS)
DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
DEFINE_ATTRIBUTE_EVENT_LISTENER(click);
- WEBCORE_EXPORT void dispatchClickEvent();
- WEBCORE_EXPORT void dispatchCloseEvent();
- WEBCORE_EXPORT void dispatchErrorEvent();
- WEBCORE_EXPORT void dispatchShowEvent();
+ void dispatchClickEvent();
+ void dispatchCloseEvent();
+ void dispatchErrorEvent();
+ void dispatchShowEvent();
using RefCounted<Notification>::ref;
using RefCounted<Notification>::deref;
// Deprecated. Use functions from NotificationCenter.
void detachPresenter() { }
- WEBCORE_EXPORT void finalize();
+ void finalize();
#if ENABLE(NOTIFICATIONS)
static const String permission(ScriptExecutionContext*);
- WEBCORE_EXPORT static const String permissionString(NotificationClient::Permission);
+ static const String permissionString(NotificationClient::Permission);
static void requestPermission(ScriptExecutionContext*, PassRefPtr<NotificationPermissionCallback> = 0);
#endif
static const char* supplementName();
static NotificationController* from(Page* page) { return static_cast<NotificationController*>(Supplement<Page>::from(page, supplementName())); }
- WEBCORE_EXPORT static NotificationClient* clientFrom(Page*);
+ static NotificationClient* clientFrom(Page*);
NotificationClient* client() { return m_client; }
friend GCController& gcController();
public:
- WEBCORE_EXPORT void garbageCollectSoon();
- WEBCORE_EXPORT void garbageCollectNow(); // It's better to call garbageCollectSoon, unless you have a specific reason not to.
+ void garbageCollectSoon();
+ void garbageCollectNow(); // It's better to call garbageCollectSoon, unless you have a specific reason not to.
- WEBCORE_EXPORT void garbageCollectOnAlternateThreadForDebugging(bool waitUntilDone); // Used for stress testing.
- WEBCORE_EXPORT void releaseExecutableMemory();
- WEBCORE_EXPORT void setJavaScriptGarbageCollectorTimerEnabled(bool);
- WEBCORE_EXPORT void discardAllCompiledCode();
+ void garbageCollectOnAlternateThreadForDebugging(bool waitUntilDone); // Used for stress testing.
+ void releaseExecutableMemory();
+ void setJavaScriptGarbageCollectorTimerEnabled(bool);
+ void discardAllCompiledCode();
private:
GCController(); // Use gcController() instead
class IdentifierRep {
WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT static IdentifierRep* get(int);
- WEBCORE_EXPORT static IdentifierRep* get(const char*);
+ static IdentifierRep* get(int);
+ static IdentifierRep* get(const char*);
- WEBCORE_EXPORT static bool isValid(IdentifierRep*);
+ static bool isValid(IdentifierRep*);
bool isString() const { return m_isString; }
class ImmutableStyleProperties : public StyleProperties {
public:
- WEBCORE_EXPORT ~ImmutableStyleProperties();
+ ~ImmutableStyleProperties();
static PassRef<ImmutableStyleProperties> create(const CSSProperty* properties, unsigned count, CSSParserMode);
unsigned propertyCount() const { return m_arraySize; }
static PassRef<MutableStyleProperties> create(CSSParserMode = CSSQuirksMode);
static PassRef<MutableStyleProperties> create(const CSSProperty* properties, unsigned count);
- WEBCORE_EXPORT ~MutableStyleProperties();
+ ~MutableStyleProperties();
unsigned propertyCount() const { return m_propertyVector.size(); }
void clear();
void parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet);
- WEBCORE_EXPORT CSSStyleDeclaration* ensureCSSStyleDeclaration();
+ CSSStyleDeclaration* ensureCSSStyleDeclaration();
CSSStyleDeclaration* ensureInlineCSSStyleDeclaration(StyledElement* parentElement);
int findPropertyIndex(CSSPropertyID) const;
class NoExceptionAssertionChecker : public ExceptionCodePlaceholder {
public:
- WEBCORE_EXPORT NoExceptionAssertionChecker(const char* file, int line);
- WEBCORE_EXPORT ~NoExceptionAssertionChecker();
+ NoExceptionAssertionChecker(const char* file, int line);
+ ~NoExceptionAssertionChecker();
private:
static const ExceptionCode defaultExceptionCode = 0xaaaaaaaa;
#endif
private:
- WEBCORE_EXPORT KeyboardEvent();
- WEBCORE_EXPORT KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
+ KeyboardEvent();
+ KeyboardEvent(const PlatformKeyboardEvent&, AbstractView*);
KeyboardEvent(const AtomicString&, const KeyboardEventInit&);
std::unique_ptr<PlatformKeyboardEvent> m_keyEvent;
return adoptRef(new MouseEvent);
}
- WEBCORE_EXPORT static PassRefPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, PassRefPtr<AbstractView>,
+ static PassRefPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, PassRefPtr<AbstractView>,
int detail, int screenX, int screenY, int pageX, int pageY,
#if ENABLE(POINTER_LOCK)
int movementX, int movementY,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
PassRefPtr<EventTarget> relatedTarget);
- WEBCORE_EXPORT static PassRefPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, PassRefPtr<AbstractView>,
+ static PassRefPtr<MouseEvent> create(const AtomicString& type, bool canBubble, bool cancelable, double timestamp, PassRefPtr<AbstractView>,
int detail, int screenX, int screenY, int pageX, int pageY,
#if ENABLE(POINTER_LOCK)
int movementX, int movementY,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
PassRefPtr<EventTarget> relatedTarget, PassRefPtr<DataTransfer>, bool isSimulated = false);
- WEBCORE_EXPORT static PassRefPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtr<Node> relatedTarget);
+ static PassRefPtr<MouseEvent> create(const AtomicString& eventType, PassRefPtr<AbstractView>, const PlatformMouseEvent&, int detail, PassRefPtr<Node> relatedTarget);
static PassRefPtr<MouseEvent> create(const AtomicString& eventType, const MouseEventInit&);
const LayoutPoint& clientLocation() const { return m_clientLocation; }
int layerX() override;
int layerY() override;
- WEBCORE_EXPORT int offsetX();
- WEBCORE_EXPORT int offsetY();
+ int offsetX();
+ int offsetY();
bool isSimulated() const { return m_isSimulated; }
virtual int pageX() const override;
virtual int pageY() const override;
static bool isSupported(const String& feature, const String& version);
- WEBCORE_EXPORT static void startIgnoringLeaks();
- WEBCORE_EXPORT static void stopIgnoringLeaks();
+ static void startIgnoringLeaks();
+ static void stopIgnoringLeaks();
static void dumpStatistics();
// These should all actually return a node, but this is only important for language bindings,
// which will already know and hold a ref on the right node to return. Returning bool allows
// these methods to be more efficient since they don't need to return a ref
- WEBCORE_EXPORT bool insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionCode&);
+ bool insertBefore(PassRefPtr<Node> newChild, Node* refChild, ExceptionCode&);
bool replaceChild(PassRefPtr<Node> newChild, Node* oldChild, ExceptionCode&);
- WEBCORE_EXPORT bool removeChild(Node* child, ExceptionCode&);
- WEBCORE_EXPORT bool appendChild(PassRefPtr<Node> newChild, ExceptionCode&);
+ bool removeChild(Node* child, ExceptionCode&);
+ bool appendChild(PassRefPtr<Node> newChild, ExceptionCode&);
- WEBCORE_EXPORT void remove(ExceptionCode&);
+ void remove(ExceptionCode&);
bool hasChildNodes() const { return firstChild(); }
virtual PassRefPtr<Node> cloneNode(bool deep) = 0;
virtual const AtomicString& localName() const;
String lookupNamespaceURI(const String& prefix) const;
String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element* originalElement) const;
- WEBCORE_EXPORT String textContent(bool convertBRsToNewlines = false) const;
- WEBCORE_EXPORT void setTextContent(const String&, ExceptionCode&);
+ String textContent(bool convertBRsToNewlines = false) const;
+ void setTextContent(const String&, ExceptionCode&);
Node* lastDescendant() const;
Node* firstDescendant() const;
Element* shadowHost() const;
// If this node is in a shadow tree, returns its shadow host. Otherwise, returns this.
// Deprecated. Should use shadowHost() and check the return value.
- WEBCORE_EXPORT Node* deprecatedShadowAncestorNode() const;
+ Node* deprecatedShadowAncestorNode() const;
ShadowRoot* containingShadowRoot() const;
ShadowRoot* shadowRoot() const;
virtual bool canContainRangeEndPoint() const { return false; }
bool isRootEditableElement() const;
- WEBCORE_EXPORT Element* rootEditableElement() const;
+ Element* rootEditableElement() const;
Element* rootEditableElement(EditableType) const;
// Called by the parser when this element's close tag is reached,
void setChildNeedsStyleRecalc() { setFlag(ChildNeedsStyleRecalcFlag); }
void clearChildNeedsStyleRecalc() { clearFlag(ChildNeedsStyleRecalcFlag); }
- WEBCORE_EXPORT void setNeedsStyleRecalc(StyleChangeType = FullStyleChange);
+ void setNeedsStyleRecalc(StyleChangeType changeType = FullStyleChange);
void clearNeedsStyleRecalc() { m_nodeFlags &= ~StyleChangeMask; }
void setIsLink(bool f) { setFlag(f, IsLinkFlag); }
UserSelectAllDoesNotAffectEditability,
UserSelectAllIsAlwaysNonEditable
};
- WEBCORE_EXPORT bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEditability);
+ bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEditability);
bool isContentRichlyEditable();
- WEBCORE_EXPORT void inspect();
+ void inspect();
- WEBCORE_EXPORT bool hasEditableStyle(EditableType editableType = ContentIsEditable, UserSelectAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const
+ bool hasEditableStyle(EditableType editableType = ContentIsEditable, UserSelectAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const
{
switch (editableType) {
case ContentIsEditable:
virtual LayoutRect boundingBox() const;
IntRect pixelSnappedBoundingBox() const { return pixelSnappedIntRect(boundingBox()); }
- WEBCORE_EXPORT LayoutRect renderRect(bool* isReplaced);
+ LayoutRect renderRect(bool* isReplaced);
IntRect pixelSnappedRenderRect(bool* isReplaced) { return pixelSnappedIntRect(renderRect(isReplaced)); }
- WEBCORE_EXPORT unsigned nodeIndex() const;
+ unsigned nodeIndex() const;
// Returns the DOM ownerDocument attribute. This method never returns null, except in the case
// of a Document node.
- WEBCORE_EXPORT Document* ownerDocument() const;
+ Document* ownerDocument() const;
// Returns the document associated with this node.
// A Document node returns itself.
void checkSetPrefix(const AtomicString& prefix, ExceptionCode&);
- WEBCORE_EXPORT bool isDescendantOf(const Node*) const;
+ bool isDescendantOf(const Node*) const;
bool isDescendantOrShadowDescendantOf(const Node*) const;
bool contains(const Node*) const;
bool containsIncludingShadowDOM(const Node*) const;
virtual bool willRespondToMouseClickEvents();
virtual bool willRespondToMouseWheelEvents();
- WEBCORE_EXPORT unsigned short compareDocumentPosition(Node*);
+ unsigned short compareDocumentPosition(Node*);
virtual Node* toNode() override;
virtual HTMLInputElement* toInputElement();
void unregisterTransientMutationObserver(MutationObserverRegistration*);
void notifyMutationObserversNodeWillDetach();
- WEBCORE_EXPORT void textRects(Vector<IntRect>&) const;
+ void textRects(Vector<IntRect>&) const;
unsigned connectedSubframeCount() const;
void incrementConnectedSubframeCount(unsigned amount = 1);
return NOPSEUDO;
}
- WEBCORE_EXPORT void removedLastRef();
+ void removedLastRef();
bool hasTreeSharedParent() const { return !!parentNode(); }
enum EditableLevel { Editable, RichlyEditable };
bool hasEditableStyle(EditableLevel, UserSelectAllTreatment = UserSelectAllIsAlwaysNonEditable) const;
- WEBCORE_EXPORT bool isEditableToAccessibility(EditableLevel) const;
+ bool isEditableToAccessibility(EditableLevel) const;
virtual void refEventTarget() override;
virtual void derefEventTarget() override;
namespace NodeTraversal {
-WEBCORE_EXPORT Node* nextAncestorSibling(const Node*);
-WEBCORE_EXPORT Node* nextAncestorSibling(const Node*, const Node* stayWithin);
-WEBCORE_EXPORT Node* deepLastChild(Node*);
+Node* nextAncestorSibling(const Node*);
+Node* nextAncestorSibling(const Node*, const Node* stayWithin);
+Node* deepLastChild(Node*);
template <class NodeType>
inline Node* traverseNextTemplate(NodeType* current)
PositionIsAfterChildren,
};
- WEBCORE_EXPORT Position()
+ Position()
: m_offset(0)
, m_anchorType(PositionIsOffsetInAnchor)
, m_isLegacyEditingPosition(false)
int m_offset;
};
- WEBCORE_EXPORT Position(PassRefPtr<Node> anchorNode, LegacyEditingOffset);
+ Position(PassRefPtr<Node> anchorNode, LegacyEditingOffset);
// For creating before/after positions:
Position(PassRefPtr<Node> anchorNode, AnchorType);
// For creating offset positions:
// FIXME: This constructor should eventually go away. See bug 63040.
- WEBCORE_EXPORT Position(PassRefPtr<Node> anchorNode, int offset, AnchorType);
+ Position(PassRefPtr<Node> anchorNode, int offset, AnchorType);
AnchorType anchorType() const { return static_cast<AnchorType>(m_anchorType); }
// These are always DOM compliant values. Editing positions like [img, 0] (aka [img, before])
// will return img->parentNode() and img->nodeIndex() from these functions.
- WEBCORE_EXPORT Node* containerNode() const; // null for a before/after position anchored to a node with no parent
+ Node* containerNode() const; // NULL for a before/after position anchored to a node with no parent
Text* containerText() const;
int computeOffsetInContainerNode() const; // O(n) for before/after-anchored positions, O(1) for parent-anchored positions
- WEBCORE_EXPORT Position parentAnchoredEquivalent() const; // Convenience method for DOM positions that also fixes up some positions for editing
+ Position parentAnchoredEquivalent() const; // Convenience method for DOM positions that also fixes up some positions for editing
// Inline O(1) access for Positions which callers know to be parent-anchored
int offsetInContainerNode() const
// Move up or down the DOM by one position.
// Offsets are computed using render text for nodes that have renderers - but note that even when
// using composed characters, the result may be inside a single user-visible character if a ligature is formed.
- WEBCORE_EXPORT Position previous(PositionMoveType = CodePoint) const;
+ Position previous(PositionMoveType = CodePoint) const;
Position next(PositionMoveType = CodePoint) const;
static int uncheckedPreviousOffset(const Node*, int current);
static int uncheckedPreviousOffsetForBackwardDeletion(const Node*, int current);
// FIXME: Make these non-member functions and put them somewhere in the editing directory.
// These aren't really basic "position" operations. More high level editing helper functions.
- WEBCORE_EXPORT Position leadingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const;
- WEBCORE_EXPORT Position trailingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const;
+ Position leadingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const;
+ Position trailingWhitespacePosition(EAffinity, bool considerNonCollapsibleWhitespace = false) const;
// These return useful visually equivalent positions.
- WEBCORE_EXPORT Position upstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const;
- WEBCORE_EXPORT Position downstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const;
+ Position upstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const;
+ Position downstream(EditingBoundaryCrossingRule = CannotCrossEditingBoundary) const;
bool isCandidate() const;
bool isRenderedCharacter() const;
#endif
private:
- WEBCORE_EXPORT int offsetForPositionAfterAnchor() const;
+ int offsetForPositionAfterAnchor() const;
Position previousCharacterPosition(EAffinity) const;
Position nextCharacterPosition(EAffinity) const;
class Range : public RefCounted<Range> {
public:
- WEBCORE_EXPORT static PassRefPtr<Range> create(Document&);
- WEBCORE_EXPORT static PassRefPtr<Range> create(Document&, PassRefPtr<Node> startContainer, int startOffset, PassRefPtr<Node> endContainer, int endOffset);
- WEBCORE_EXPORT static PassRefPtr<Range> create(Document&, const Position&, const Position&);
- WEBCORE_EXPORT static PassRefPtr<Range> create(ScriptExecutionContext&);
+ static PassRefPtr<Range> create(Document&);
+ static PassRefPtr<Range> create(Document&, PassRefPtr<Node> startContainer, int startOffset, PassRefPtr<Node> endContainer, int endOffset);
+ static PassRefPtr<Range> create(Document&, const Position&, const Position&);
+ static PassRefPtr<Range> create(ScriptExecutionContext&);
#if PLATFORM(IOS)
// FIXME: Consider making this a static non-member, non-friend function.
- WEBCORE_EXPORT static PassRefPtr<Range> create(Document&, const VisiblePosition&, const VisiblePosition&);
+ static PassRefPtr<Range> create(Document&, const VisiblePosition&, const VisiblePosition&);
#endif
- WEBCORE_EXPORT ~Range();
+ ~Range();
Document& ownerDocument() const { return const_cast<Document&>(m_ownerDocument.get()); }
- WEBCORE_EXPORT Node* startContainer() const { return m_start.container(); }
- WEBCORE_EXPORT int startOffset() const { return m_start.offset(); }
- WEBCORE_EXPORT Node* endContainer() const { return m_end.container(); }
- WEBCORE_EXPORT int endOffset() const { return m_end.offset(); }
+ Node* startContainer() const { return m_start.container(); }
+ int startOffset() const { return m_start.offset(); }
+ Node* endContainer() const { return m_end.container(); }
+ int endOffset() const { return m_end.offset(); }
Node* startContainer(ExceptionCode&) const;
int startOffset(ExceptionCode&) const;
Node* endContainer(ExceptionCode&) const;
int endOffset(ExceptionCode&) const;
- WEBCORE_EXPORT bool collapsed(ExceptionCode&) const;
+ bool collapsed(ExceptionCode&) const;
- WEBCORE_EXPORT Node* commonAncestorContainer(ExceptionCode&) const;
+ Node* commonAncestorContainer(ExceptionCode&) const;
static Node* commonAncestorContainer(Node* containerA, Node* containerB);
- WEBCORE_EXPORT void setStart(PassRefPtr<Node> container, int offset, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void setEnd(PassRefPtr<Node> container, int offset, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void collapse(bool toStart, ExceptionCode&);
- WEBCORE_EXPORT bool isPointInRange(Node* refNode, int offset, ExceptionCode&);
+ void setStart(PassRefPtr<Node> container, int offset, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void setEnd(PassRefPtr<Node> container, int offset, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void collapse(bool toStart, ExceptionCode&);
+ bool isPointInRange(Node* refNode, int offset, ExceptionCode&);
short comparePoint(Node* refNode, int offset, ExceptionCode&) const;
enum CompareResults { NODE_BEFORE, NODE_AFTER, NODE_BEFORE_AND_AFTER, NODE_INSIDE };
CompareResults compareNode(Node* refNode, ExceptionCode&) const;
enum CompareHow { START_TO_START, START_TO_END, END_TO_END, END_TO_START };
- WEBCORE_EXPORT short compareBoundaryPoints(CompareHow, const Range* sourceRange, ExceptionCode&) const;
+ short compareBoundaryPoints(CompareHow, const Range* sourceRange, ExceptionCode&) const;
static short compareBoundaryPoints(Node* containerA, int offsetA, Node* containerB, int offsetB, ExceptionCode&);
static short compareBoundaryPoints(const RangeBoundaryPoint& boundaryA, const RangeBoundaryPoint& boundaryB, ExceptionCode&);
- WEBCORE_EXPORT bool boundaryPointsValid() const;
+ bool boundaryPointsValid() const;
bool intersectsNode(Node* refNode, ExceptionCode&);
void deleteContents(ExceptionCode&);
PassRefPtr<DocumentFragment> extractContents(ExceptionCode&);
String toString(ExceptionCode&) const;
String toHTML() const;
- WEBCORE_EXPORT String text() const;
+ String text() const;
PassRefPtr<DocumentFragment> createContextualFragment(const String& html, ExceptionCode&);
void detach(ExceptionCode&);
- WEBCORE_EXPORT PassRefPtr<Range> cloneRange(ExceptionCode&) const;
+ PassRefPtr<Range> cloneRange(ExceptionCode&) const;
- WEBCORE_EXPORT void setStartAfter(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void setEndBefore(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void setEndAfter(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void selectNode(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void selectNodeContents(Node*, ExceptionCode&);
+ void setStartAfter(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void setEndBefore(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void setEndAfter(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void selectNode(Node*, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void selectNodeContents(Node*, ExceptionCode&);
void surroundContents(PassRefPtr<Node>, ExceptionCode&);
- WEBCORE_EXPORT void setStartBefore(Node*, ExceptionCode&);
+ void setStartBefore(Node*, ExceptionCode&);
const Position startPosition() const { return m_start.toPosition(); }
const Position endPosition() const { return m_end.toPosition(); }
- WEBCORE_EXPORT void setStart(const Position&, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT void setEnd(const Position&, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void setStart(const Position&, ExceptionCode& = ASSERT_NO_EXCEPTION);
+ void setEnd(const Position&, ExceptionCode& = ASSERT_NO_EXCEPTION);
- WEBCORE_EXPORT Node* firstNode() const;
- WEBCORE_EXPORT Node* pastLastNode() const;
+ Node* firstNode() const;
+ Node* pastLastNode() const;
ShadowRoot* shadowRoot() const;
// Not transform-friendly
void textRects(Vector<IntRect>&, bool useSelectionHeight = false, RangeInFixedPosition* = 0) const;
- WEBCORE_EXPORT IntRect boundingBox() const;
+ IntRect boundingBox() const;
// Transform-friendly
- WEBCORE_EXPORT void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false, RangeInFixedPosition* = 0) const;
+ void textQuads(Vector<FloatQuad>&, bool useSelectionHeight = false, RangeInFixedPosition* = 0) const;
void getBorderAndTextQuads(Vector<FloatQuad>&) const;
- WEBCORE_EXPORT FloatRect boundingRect() const;
+ FloatRect boundingRect() const;
#if PLATFORM(IOS)
- WEBCORE_EXPORT void collectSelectionRects(Vector<SelectionRect>&);
+ void collectSelectionRects(Vector<SelectionRect>&);
#endif
void nodeChildrenChanged(ContainerNode&);
void formatForDebugger(char* buffer, unsigned length) const;
#endif
- WEBCORE_EXPORT bool contains(const Range&) const;
+ bool contains(const Range&) const;
private:
explicit Range(Document&);
bool hasCaret() const { return m_position.isNotNull(); }
const VisiblePosition& caretPosition() { return m_position; }
void setCaretPosition(const VisiblePosition&);
- WEBCORE_EXPORT void clear() { setCaretPosition(VisiblePosition()); }
+ void clear() { setCaretPosition(VisiblePosition()); }
void nodeWillBeRemoved(Node*);
return CloseTyping | ClearTypingStyle | (userTriggered ? (RevealSelection | FireSelectEvent) : 0);
}
- WEBCORE_EXPORT explicit FrameSelection(Frame* = nullptr);
+ explicit FrameSelection(Frame* = 0);
- WEBCORE_EXPORT Element* rootEditableElementOrDocumentElement() const;
+ Element* rootEditableElementOrDocumentElement() const;
void moveTo(const Range*);
void moveTo(const VisiblePosition&, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded);
- WEBCORE_EXPORT void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
+ void moveTo(const VisiblePosition&, const VisiblePosition&, EUserTriggered = NotUserTriggered);
void moveTo(const Position&, EAffinity, EUserTriggered = NotUserTriggered);
void moveTo(const Position&, const Position&, EAffinity, EUserTriggered = NotUserTriggered);
void moveWithoutValidationTo(const Position&, const Position&, bool selectionHasDirection, bool shouldSetFocus);
const VisibleSelection& selection() const { return m_selection; }
- WEBCORE_EXPORT void setSelection(const VisibleSelection&, SetSelectionOptions = defaultSetSelectionOptions(), CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGranularity = CharacterGranularity);
- WEBCORE_EXPORT bool setSelectedRange(Range*, EAffinity, bool closeTyping);
- WEBCORE_EXPORT void selectAll();
+ void setSelection(const VisibleSelection&, SetSelectionOptions = defaultSetSelectionOptions(), CursorAlignOnScroll = AlignCursorOnScrollIfNeeded, TextGranularity = CharacterGranularity);
+ bool setSelectedRange(Range*, EAffinity, bool closeTyping);
+ void selectAll();
void clear();
void prepareForDestruction();
bool contains(const LayoutPoint&);
- WEBCORE_EXPORT bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered = NotUserTriggered);
+ bool modify(EAlteration, SelectionDirection, TextGranularity, EUserTriggered = NotUserTriggered);
enum VerticalDirection { DirectionUp, DirectionDown };
bool modify(EAlteration, unsigned verticalDistance, VerticalDirection, EUserTriggered = NotUserTriggered, CursorAlignOnScroll = AlignCursorOnScrollIfNeeded);
RenderObject* caretRendererWithoutUpdatingLayout() const;
// Bounds of (possibly transformed) caret in absolute coords
- WEBCORE_EXPORT IntRect absoluteCaretBounds();
+ IntRect absoluteCaretBounds();
void setCaretRectNeedsUpdate() { CaretBase::setCaretRectNeedsUpdate(); }
void willBeModified(EAlteration, SelectionDirection);
bool isCaretBlinkingSuspended() const { return m_isCaretBlinkingSuspended; }
// Focus
- WEBCORE_EXPORT void setFocused(bool);
+ void setFocused(bool);
bool isFocused() const { return m_focused; }
- WEBCORE_EXPORT bool isFocusedAndActive() const;
+ bool isFocusedAndActive() const;
void pageActivationChanged();
// Painting.
- WEBCORE_EXPORT void updateAppearance();
+ void updateAppearance();
#ifndef NDEBUG
void formatForDebugger(char* buffer, unsigned length) const;
#if PLATFORM(IOS)
public:
- WEBCORE_EXPORT void expandSelectionToElementContainingCaretSelection();
- WEBCORE_EXPORT PassRefPtr<Range> elementRangeContainingCaretSelection() const;
- WEBCORE_EXPORT void expandSelectionToWordContainingCaretSelection();
- WEBCORE_EXPORT PassRefPtr<Range> wordRangeContainingCaretSelection();
- WEBCORE_EXPORT void expandSelectionToStartOfWordContainingCaretSelection();
- WEBCORE_EXPORT UChar characterInRelationToCaretSelection(int amount) const;
- WEBCORE_EXPORT UChar characterBeforeCaretSelection() const;
- WEBCORE_EXPORT UChar characterAfterCaretSelection() const;
- WEBCORE_EXPORT int wordOffsetInRange(const Range*) const;
- WEBCORE_EXPORT bool spaceFollowsWordInRange(const Range*) const;
- WEBCORE_EXPORT bool selectionAtDocumentStart() const;
- WEBCORE_EXPORT bool selectionAtSentenceStart() const;
- WEBCORE_EXPORT bool selectionAtWordStart() const;
- WEBCORE_EXPORT PassRefPtr<Range> rangeByMovingCurrentSelection(int amount) const;
- WEBCORE_EXPORT PassRefPtr<Range> rangeByExtendingCurrentSelection(int amount) const;
- WEBCORE_EXPORT void selectRangeOnElement(unsigned location, unsigned length, Node*);
- WEBCORE_EXPORT void clearCurrentSelection();
+ void expandSelectionToElementContainingCaretSelection();
+ PassRefPtr<Range> elementRangeContainingCaretSelection() const;
+ void expandSelectionToWordContainingCaretSelection();
+ PassRefPtr<Range> wordRangeContainingCaretSelection();
+ void expandSelectionToStartOfWordContainingCaretSelection();
+ UChar characterInRelationToCaretSelection(int amount) const;
+ UChar characterBeforeCaretSelection() const;
+ UChar characterAfterCaretSelection() const;
+ int wordOffsetInRange(const Range*) const;
+ bool spaceFollowsWordInRange(const Range*) const;
+ bool selectionAtDocumentStart() const;
+ bool selectionAtSentenceStart() const;
+ bool selectionAtWordStart() const;
+ PassRefPtr<Range> rangeByMovingCurrentSelection(int amount) const;
+ PassRefPtr<Range> rangeByExtendingCurrentSelection(int amount) const;
+ void selectRangeOnElement(unsigned location, unsigned length, Node*);
+ void clearCurrentSelection();
void setCaretBlinks(bool caretBlinks = true);
- WEBCORE_EXPORT void setCaretColor(const Color&);
- WEBCORE_EXPORT static VisibleSelection wordSelectionContainingCaretSelection(const VisibleSelection&);
+ void setCaretColor(const Color&);
+ static VisibleSelection wordSelectionContainingCaretSelection(const VisibleSelection&);
void setUpdateAppearanceEnabled(bool enabled) { m_updateAppearanceEnabled = enabled; }
void suppressScrolling() { ++m_scrollingSuppressCount; }
void restoreScrolling()
void setSelectionByMouseIfDifferent(const VisibleSelection&, TextGranularity, EndPointsAdjustmentMode = DoNotAdjsutEndpoints);
EditingStyle* typingStyle() const;
- WEBCORE_EXPORT PassRefPtr<MutableStyleProperties> copyTypingStyle() const;
+ PassRefPtr<MutableStyleProperties> copyTypingStyle() const;
void setTypingStyle(PassRefPtr<EditingStyle>);
void clearTypingStyle();
- WEBCORE_EXPORT FloatRect selectionBounds(bool clipToVisibleContent = true) const;
+ FloatRect selectionBounds(bool clipToVisibleContent = true) const;
- WEBCORE_EXPORT void getClippedVisibleTextRectangles(Vector<FloatRect>&) const;
+ void getClippedVisibleTextRectangles(Vector<FloatRect>&) const;
- WEBCORE_EXPORT HTMLFormElement* currentForm() const;
+ HTMLFormElement* currentForm() const;
- WEBCORE_EXPORT void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
- WEBCORE_EXPORT void setSelectionFromNone();
+ void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
+ void setSelectionFromNone();
bool shouldShowBlockCursor() const { return m_shouldShowBlockCursor; }
void setShouldShowBlockCursor(bool);
return adoptRef(new HistoryItem(url, target, parent, title));
}
- WEBCORE_EXPORT ~HistoryItem();
+ ~HistoryItem();
- WEBCORE_EXPORT PassRefPtr<HistoryItem> copy() const;
+ PassRefPtr<HistoryItem> copy() const;
// Resets the HistoryItem to its initial state, as returned by create().
void reset();
- WEBCORE_EXPORT const String& originalURLString() const;
- WEBCORE_EXPORT const String& urlString() const;
- WEBCORE_EXPORT const String& title() const;
+ const String& originalURLString() const;
+ const String& urlString() const;
+ const String& title() const;
bool isInPageCache() const { return m_cachedPage.get(); }
- WEBCORE_EXPORT bool hasCachedPageExpired() const;
+ bool hasCachedPageExpired() const;
- WEBCORE_EXPORT void setAlternateTitle(const String&);
- WEBCORE_EXPORT const String& alternateTitle() const;
+ void setAlternateTitle(const String& alternateTitle);
+ const String& alternateTitle() const;
const String& parent() const;
- WEBCORE_EXPORT URL url() const;
- WEBCORE_EXPORT URL originalURL() const;
- WEBCORE_EXPORT const String& referrer() const;
- WEBCORE_EXPORT const String& target() const;
- WEBCORE_EXPORT bool isTargetItem() const;
+ URL url() const;
+ URL originalURL() const;
+ const String& referrer() const;
+ const String& target() const;
+ bool isTargetItem() const;
- WEBCORE_EXPORT FormData* formData();
- WEBCORE_EXPORT String formContentType() const;
+ FormData* formData();
+ String formContentType() const;
bool lastVisitWasFailure() const { return m_lastVisitWasFailure; }
- WEBCORE_EXPORT const IntPoint& scrollPoint() const;
- WEBCORE_EXPORT void setScrollPoint(const IntPoint&);
+ const IntPoint& scrollPoint() const;
+ void setScrollPoint(const IntPoint&);
void clearScrollPoint();
- WEBCORE_EXPORT float pageScaleFactor() const;
- WEBCORE_EXPORT void setPageScaleFactor(float);
+ float pageScaleFactor() const;
+ void setPageScaleFactor(float);
- WEBCORE_EXPORT const Vector<String>& documentState() const;
- WEBCORE_EXPORT void setDocumentState(const Vector<String>&);
+ const Vector<String>& documentState() const;
+ void setDocumentState(const Vector<String>&);
void clearDocumentState();
void setURL(const URL&);
- WEBCORE_EXPORT void setURLString(const String&);
- WEBCORE_EXPORT void setOriginalURLString(const String&);
- WEBCORE_EXPORT void setReferrer(const String&);
- WEBCORE_EXPORT void setTarget(const String&);
+ void setURLString(const String&);
+ void setOriginalURLString(const String&);
+ void setReferrer(const String&);
+ void setTarget(const String&);
void setParent(const String&);
- WEBCORE_EXPORT void setTitle(const String&);
- WEBCORE_EXPORT void setIsTargetItem(bool);
+ void setTitle(const String&);
+ void setIsTargetItem(bool);
- WEBCORE_EXPORT void setStateObject(PassRefPtr<SerializedScriptValue>);
+ void setStateObject(PassRefPtr<SerializedScriptValue> object);
PassRefPtr<SerializedScriptValue> stateObject() const { return m_stateObject; }
void setItemSequenceNumber(long long number) { m_itemSequenceNumber = number; }
long long documentSequenceNumber() const { return m_documentSequenceNumber; }
void setFormInfoFromRequest(const ResourceRequest&);
- WEBCORE_EXPORT void setFormData(PassRefPtr<FormData>);
- WEBCORE_EXPORT void setFormContentType(const String&);
+ void setFormData(PassRefPtr<FormData>);
+ void setFormContentType(const String&);
void setLastVisitWasFailure(bool wasFailure) { m_lastVisitWasFailure = wasFailure; }
- WEBCORE_EXPORT void addChildItem(PassRefPtr<HistoryItem>);
+ void addChildItem(PassRefPtr<HistoryItem>);
void setChildItem(PassRefPtr<HistoryItem>);
- WEBCORE_EXPORT HistoryItem* childItemWithTarget(const String&) const;
+ HistoryItem* childItemWithTarget(const String&) const;
HistoryItem* childItemWithDocumentSequenceNumber(long long number) const;
- WEBCORE_EXPORT HistoryItem* targetItem();
- WEBCORE_EXPORT const HistoryItemVector& children() const;
- WEBCORE_EXPORT bool hasChildren() const;
+ HistoryItem* targetItem();
+ const HistoryItemVector& children() const;
+ bool hasChildren() const;
void clearChildren();
bool isAncestorOf(const HistoryItem*) const;
bool shouldDoSameDocumentNavigationTo(HistoryItem* otherItem) const;
bool hasSameFrames(HistoryItem* otherItem) const;
- WEBCORE_EXPORT void addRedirectURL(const String&);
- WEBCORE_EXPORT Vector<String>* redirectURLs() const;
- WEBCORE_EXPORT void setRedirectURLs(std::unique_ptr<Vector<String>>);
+ void addRedirectURL(const String&);
+ Vector<String>* redirectURLs() const;
+ void setRedirectURLs(std::unique_ptr<Vector<String>>);
bool isCurrentDocument(Document*) const;
#if PLATFORM(COCOA)
- WEBCORE_EXPORT id viewState() const;
- WEBCORE_EXPORT void setViewState(id);
+ id viewState() const;
+ void setViewState(id);
// Transient properties may be of any ObjC type. They are intended to be used to store state per back/forward list entry.
// The properties will not be persisted; when the history item is removed, the properties will be lost.
- WEBCORE_EXPORT id getTransientProperty(const String&) const;
- WEBCORE_EXPORT void setTransientProperty(const String&, id);
+ id getTransientProperty(const String&) const;
+ void setTransientProperty(const String&, id);
#endif
#ifndef NDEBUG
#endif
private:
- WEBCORE_EXPORT HistoryItem();
- WEBCORE_EXPORT HistoryItem(const String& urlString, const String& title);
- WEBCORE_EXPORT HistoryItem(const String& urlString, const String& title, const String& alternateTitle);
- WEBCORE_EXPORT HistoryItem(const URL&, const String& frameName, const String& parent, const String& title);
+ HistoryItem();
+ HistoryItem(const String& urlString, const String& title);
+ HistoryItem(const String& urlString, const String& title, const String& alternateTitle);
+ HistoryItem(const URL& url, const String& frameName, const String& parent, const String& title);
explicit HistoryItem(const HistoryItem&);
bool canCache(Page*) const;
- WEBCORE_EXPORT void setCapacity(int); // number of pages to cache
+ void setCapacity(int); // number of pages to cache
int capacity() { return m_capacity; }
void add(PassRefPtr<HistoryItem>, Page&); // Prunes if capacity() is exceeded.
- WEBCORE_EXPORT void remove(HistoryItem*);
+ void remove(HistoryItem*);
CachedPage* get(HistoryItem* item);
std::unique_ptr<CachedPage> take(HistoryItem*);
int pageCount() const { return m_size; }
- WEBCORE_EXPORT int frameCount() const;
+ int frameCount() const;
- WEBCORE_EXPORT void markPagesForVistedLinkStyleRecalc();
+ void markPagesForVistedLinkStyleRecalc();
// Will mark all cached pages associated with the given page as needing style recalc.
void markPagesForFullStyleRecalc(Page*);
void restoreControlStateFor(HTMLFormControlElementWithState&);
void restoreControlStateIn(HTMLFormElement&);
- WEBCORE_EXPORT static Vector<String> getReferencedFilePaths(const Vector<String>& stateVector);
+ static Vector<String> getReferencedFilePaths(const Vector<String>& stateVector);
private:
typedef ListHashSet<RefPtr<HTMLFormControlElementWithState>, 64> FormElementListHashSet;
PassRefPtr<HTMLCollection> children();
- WEBCORE_EXPORT virtual String title() const override final;
+ virtual String title() const override final;
virtual short tabIndex() const override;
bool shouldAutocomplete() const;
#if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE)
- WEBCORE_EXPORT bool autocorrect() const;
+ bool autocorrect() const;
void setAutocorrect(bool);
- WEBCORE_EXPORT WebAutocapitalizeType autocapitalizeType() const;
+ WebAutocapitalizeType autocapitalizeType() const;
const AtomicString& autocapitalize() const;
void setAutocapitalize(const AtomicString&);
#endif
Frame* contentFrame() const { return m_contentFrame; }
DOMWindow* contentWindow() const;
- WEBCORE_EXPORT Document* contentDocument() const;
+ Document* contentDocument() const;
void setContentFrame(Frame*);
void clearContentFrame();
virtual HTMLInputElement* toInputElement() override { return this; }
- WEBCORE_EXPORT virtual bool shouldAutocomplete() const override;
+ virtual bool shouldAutocomplete() const override;
// For ValidityState
virtual bool hasBadInput() const override;
bool isTextButton() const;
bool isRadioButton() const;
- WEBCORE_EXPORT bool isTextField() const;
- WEBCORE_EXPORT bool isSearchField() const;
+ bool isTextField() const;
+ bool isSearchField() const;
bool isInputTypeHidden() const;
- WEBCORE_EXPORT bool isPasswordField() const;
+ bool isPasswordField() const;
bool isCheckbox() const;
bool isRangeControl() const;
// be using a different one. Many input elements behave like text fields, and in addition
// any unknown input type is treated as text. Consider, for example, isTextField or
// isTextField && !isPasswordField.
- WEBCORE_EXPORT bool isText() const;
+ bool isText() const;
- WEBCORE_EXPORT bool isEmailField() const;
+ bool isEmailField() const;
bool isFileUpload() const;
bool isImageButton() const;
- WEBCORE_EXPORT bool isNumberField() const;
+ bool isNumberField() const;
bool isSubmitButton() const;
- WEBCORE_EXPORT bool isTelephoneField() const;
- WEBCORE_EXPORT bool isURLField() const;
- WEBCORE_EXPORT bool isDateField() const;
- WEBCORE_EXPORT bool isDateTimeField() const;
- WEBCORE_EXPORT bool isDateTimeLocalField() const;
- WEBCORE_EXPORT bool isMonthField() const;
- WEBCORE_EXPORT bool isTimeField() const;
- WEBCORE_EXPORT bool isWeekField() const;
+ bool isTelephoneField() const;
+ bool isURLField() const;
+ bool isDateField() const;
+ bool isDateTimeField() const;
+ bool isDateTimeLocalField() const;
+ bool isMonthField() const;
+ bool isTimeField() const;
+ bool isWeekField() const;
#if PLATFORM(IOS)
DateComponents::Type dateType() const;
virtual String value() const override;
void setValue(const String&, ExceptionCode&, TextFieldEventBehavior = DispatchNoEvent);
- WEBCORE_EXPORT void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent);
- WEBCORE_EXPORT void setValueForUser(const String&);
+ void setValue(const String&, TextFieldEventBehavior = DispatchNoEvent);
+ void setValueForUser(const String&);
// Checks if the specified string would be a valid value.
// We should not call this for types with no string value such as CHECKBOX and RADIO.
bool isValidValue(const String&) const;
// The value which is drawn by a renderer.
String visibleValue() const;
- WEBCORE_EXPORT void setEditingValue(const String&);
+ void setEditingValue(const String&);
double valueAsDate() const;
void setValueAsDate(double, ExceptionCode&);
- WEBCORE_EXPORT double valueAsNumber() const;
- WEBCORE_EXPORT void setValueAsNumber(double, ExceptionCode&, TextFieldEventBehavior = DispatchNoEvent);
+ double valueAsNumber() const;
+ void setValueAsNumber(double, ExceptionCode&, TextFieldEventBehavior = DispatchNoEvent);
String valueWithDefault() const;
bool multiple() const;
bool isAutofilled() const { return m_isAutofilled; }
- WEBCORE_EXPORT void setAutofilled(bool = true);
+ void setAutofilled(bool = true);
FileList* files();
void setFiles(PassRefPtr<FileList>);
#if ENABLE(INPUT_TYPE_COLOR)
// For test purposes.
- WEBCORE_EXPORT void selectColorInColorChooser(const Color&);
+ void selectColorInColorChooser(const Color&);
#endif
String defaultToolTip() const;
virtual bool hasAudio() const override;
void rewind(double timeDelta);
- WEBCORE_EXPORT virtual void returnToRealtime() override;
+ virtual void returnToRealtime() override;
// Eventually overloaded in HTMLVideoElement
virtual bool supportsFullscreen() const override { return false; };
virtual bool doesHaveAttribute(const AtomicString&, AtomicString* value = nullptr) const override;
- WEBCORE_EXPORT PlatformMedia platformMedia() const;
+ PlatformMedia platformMedia() const;
PlatformLayer* platformLayer() const;
#if PLATFORM(IOS)
void setVideoFullscreenLayer(PlatformLayer*);
bool seeking() const;
// playback state
- WEBCORE_EXPORT virtual double currentTime() const override;
+ virtual double currentTime() const override;
virtual void setCurrentTime(double) override;
virtual void setCurrentTime(double, ExceptionCode&);
- WEBCORE_EXPORT virtual double duration() const override;
- WEBCORE_EXPORT virtual bool paused() const override;
+ virtual double duration() const override;
+ virtual bool paused() const override;
virtual double defaultPlaybackRate() const override;
virtual void setDefaultPlaybackRate(double) override;
- WEBCORE_EXPORT virtual double playbackRate() const override;
+ virtual double playbackRate() const override;
virtual void setPlaybackRate(double) override;
void updatePlaybackRate();
bool webkitPreservesPitch() const;
void setWebkitPreservesPitch(bool);
virtual PassRefPtr<TimeRanges> played() override;
virtual PassRefPtr<TimeRanges> seekable() const override;
- WEBCORE_EXPORT bool ended() const;
+ bool ended() const;
bool autoplay() const;
bool loop() const;
void setLoop(bool b);
- WEBCORE_EXPORT virtual void play() override;
- WEBCORE_EXPORT virtual void pause() override;
+ virtual void play() override;
+ virtual void pause() override;
virtual void setShouldBufferData(bool) override;
void fastSeek(double);
double minFastReverseRate() const;
// controls
bool controls() const;
void setControls(bool);
- WEBCORE_EXPORT virtual double volume() const override;
+ virtual double volume() const override;
virtual void setVolume(double, ExceptionCode&) override;
- WEBCORE_EXPORT virtual bool muted() const override;
- WEBCORE_EXPORT virtual void setMuted(bool) override;
+ virtual bool muted() const override;
+ virtual void setMuted(bool) override;
- WEBCORE_EXPORT void togglePlayState();
- WEBCORE_EXPORT virtual void beginScrubbing() override;
- WEBCORE_EXPORT virtual void endScrubbing() override;
+ void togglePlayState();
+ virtual void beginScrubbing() override;
+ virtual void endScrubbing() override;
virtual void beginScanning(ScanDirection) override;
virtual void endScanning() override;
double nextScanRate();
- WEBCORE_EXPORT virtual bool canPlay() const override;
+ virtual bool canPlay() const override;
double percentLoaded() const;
bool hasSingleSecurityOrigin() const { return !m_player || m_player->hasSingleSecurityOrigin(); }
- WEBCORE_EXPORT virtual bool isFullscreen() const override;
+ virtual bool isFullscreen() const override;
void toggleFullscreenState();
virtual void enterFullscreen() override;
- WEBCORE_EXPORT void exitFullscreen();
+ void exitFullscreen();
virtual bool hasClosedCaptions() const override;
virtual bool closedCaptionsVisible() const override;
virtual void privateBrowsingStateDidChange() override;
// Media cache management.
- WEBCORE_EXPORT static void getSitesInMediaCache(Vector<String>&);
- WEBCORE_EXPORT static void clearMediaCache();
- WEBCORE_EXPORT static void clearMediaCacheForSite(const String&);
+ static void getSitesInMediaCache(Vector<String>&);
+ static void clearMediaCache();
+ static void clearMediaCacheForSite(const String&);
static void resetMediaEngines();
bool isPlaying() const { return m_playing; }
virtual bool isDisabledFormControl() const override;
HTMLSelectElement* ownerSelectElement() const;
- WEBCORE_EXPORT String groupLabelText() const;
+ String groupLabelText() const;
private:
HTMLOptGroupElement(const QualifiedName&, Document&);
static PassRefPtr<HTMLOptionElement> createForJSConstructor(Document&, const String& data, const String& value,
bool defaultSelected, bool selected, ExceptionCode&);
- WEBCORE_EXPORT virtual String text() const;
+ virtual String text() const;
void setText(const String&, ExceptionCode&);
int index() const;
String value() const;
void setValue(const String&);
- WEBCORE_EXPORT bool selected();
+ bool selected();
void setSelected(bool);
#if ENABLE(DATALIST_ELEMENT)
PassRefPtr<JSC::Bindings::Instance> getInstance();
- WEBCORE_EXPORT Widget* pluginWidget() const;
+ Widget* pluginWidget() const;
enum DisplayState {
WaitingForSnapshot,
JSC::JSObject* scriptObjectForPluginReplacement();
#if ENABLE(NETSCAPE_PLUGIN_API)
- WEBCORE_EXPORT NPObject* getNPObject();
+ NPObject* getNPObject();
#endif
bool isCapturingMouseEvents() const { return m_isCapturingMouseEvents; }
void userDidClickSnapshot(PassRefPtr<MouseEvent>, bool forwardEvent);
void checkSnapshotStatus();
Image* snapshotImage() const { return m_snapshotImage.get(); }
- WEBCORE_EXPORT void restartSnapshottedPlugIn();
+ void restartSnapshottedPlugIn();
// Plug-in URL might not be the same as url() with overriding parameters.
void subframeLoaderWillCreatePlugIn(const URL& plugInURL);
void subframeLoaderDidCreatePlugIn(const Widget*);
- WEBCORE_EXPORT void setIsPrimarySnapshottedPlugIn(bool);
+ void setIsPrimarySnapshottedPlugIn(bool);
bool partOfSnapshotOverlay(Node*);
bool needsCheckForSizeChange() const { return m_needsCheckForSizeChange; }
public:
static PassRefPtr<HTMLSelectElement> create(const QualifiedName&, Document&, HTMLFormElement*);
- WEBCORE_EXPORT int selectedIndex() const;
+ int selectedIndex() const;
void setSelectedIndex(int);
- WEBCORE_EXPORT void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMultipleSelection = false);
+ void optionSelectedByUser(int index, bool dispatchChangeEvent, bool allowMultipleSelection = false);
// For ValidityState
virtual String validationMessage() const override;
void removeByIndex(int);
void remove(HTMLOptionElement*);
- WEBCORE_EXPORT String value() const;
+ String value() const;
void setValue(const String&);
PassRefPtr<HTMLOptionsCollection> options();
void invalidateSelectedItems();
void updateListItemSelectedStates();
- WEBCORE_EXPORT const Vector<HTMLElement*>& listItems() const;
+ const Vector<HTMLElement*>& listItems() const;
virtual void accessKeyAction(bool sendMouseEvents) override;
void accessKeySetSelectedIndex(int);
String headers() const;
String scope() const;
- WEBCORE_EXPORT HTMLTableCellElement* cellAbove() const;
+ HTMLTableCellElement* cellAbove() const;
private:
HTMLTableCellElement(const QualifiedName&, Document&);
bool shouldWrapText() const { return m_wrap != NoWrap; }
- WEBCORE_EXPORT virtual String value() const override;
- WEBCORE_EXPORT void setValue(const String&);
+ virtual String value() const override;
+ void setValue(const String&);
String defaultValue() const;
void setDefaultValue(const String&);
int textLength() const { return value().length(); }
void updatePlaceholderVisibility();
int indexForVisiblePosition(const VisiblePosition&) const;
- WEBCORE_EXPORT VisiblePosition visiblePositionForIndex(int index) const;
+ VisiblePosition visiblePositionForIndex(int index) const;
int selectionStart() const;
int selectionEnd() const;
const AtomicString& selectionDirection() const;
virtual TextControlInnerTextElement* innerTextElement() const = 0;
void selectionChanged(bool shouldFireSelectEvent);
- WEBCORE_EXPORT bool lastChangeWasUserEdit() const;
+ bool lastChangeWasUserEdit() const;
void setInnerTextValue(const String&);
String innerTextValue() const;
void setTextAsOfLastFormControlChangeEvent(const String& text) { m_textAsOfLastFormControlChangeEvent = text; }
#if PLATFORM(IOS)
- WEBCORE_EXPORT void hidePlaceholder();
- WEBCORE_EXPORT void showPlaceholderIfNecessary();
+ void hidePlaceholder();
+ void showPlaceholderIfNecessary();
#endif
protected:
public:
static PassRefPtr<HTMLVideoElement> create(const QualifiedName&, Document&, bool);
- WEBCORE_EXPORT unsigned videoWidth() const;
- WEBCORE_EXPORT unsigned videoHeight() const;
+ unsigned videoWidth() const;
+ unsigned videoHeight() const;
// Fullscreen
void webkitEnterFullscreen(ExceptionCode&);
return adoptRef(new ImageDocument(frame, url));
}
- WEBCORE_EXPORT HTMLImageElement* imageElement() const;
+ HTMLImageElement* imageElement() const;
void updateDuringParsing();
void finishedParsing();
void setPluginElement(PassRefPtr<HTMLPlugInElement>);
- WEBCORE_EXPORT Widget* pluginWidget();
+ Widget* pluginWidget();
HTMLPlugInElement* pluginElement() { return m_pluginElement.get(); }
void detachFromPluginElement();
explicit FileIconLoader(FileIconLoaderClient&);
void invalidate();
- WEBCORE_EXPORT void notifyFinished(PassRefPtr<Icon>);
+ void notifyFinished(PassRefPtr<Icon>);
private:
FileIconLoaderClient* m_client;
bool hasDistribution() const { return m_hasDistribution; }
void setHasDistribution() { m_hasDistribution = true; }
void clearDistribution() { m_hasDistribution = false; }
- WEBCORE_EXPORT bool isActive() const;
+ bool isActive() const;
virtual MatchType matchTypeFor(Node*) const { return AlwaysMatches; }
virtual bool handleJavaScriptDialog(bool, const String*) { return false; }
- WEBCORE_EXPORT static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String& message);
+ static bool doDispatchMessageOnFrontendPage(Page* frontendPage, const String& message);
};
} // namespace WebCore
bool enabled() const;
Page& inspectedPage() const;
- WEBCORE_EXPORT void show();
- WEBCORE_EXPORT void close();
+ void show();
+ void close();
- WEBCORE_EXPORT void setInspectorFrontendClient(std::unique_ptr<InspectorFrontendClient>);
+ void setInspectorFrontendClient(std::unique_ptr<InspectorFrontendClient>);
bool hasInspectorFrontendClient() const;
void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld&);
- WEBCORE_EXPORT void dispatchMessageFromFrontend(const String& message);
+ void dispatchMessageFromFrontend(const String& message);
bool hasFrontend() const { return !!m_inspectorFrontendChannel; }
bool hasLocalFrontend() const;
bool hasRemoteFrontend() const;
- WEBCORE_EXPORT void connectFrontend(Inspector::InspectorFrontendChannel*);
- WEBCORE_EXPORT void disconnectFrontend(Inspector::InspectorDisconnectReason);
+ void connectFrontend(Inspector::InspectorFrontendChannel*);
+ void disconnectFrontend(Inspector::InspectorDisconnectReason);
void setProcessId(long);
#if ENABLE(REMOTE_INSPECTOR)
#endif
void inspect(Node*);
- WEBCORE_EXPORT void drawHighlight(GraphicsContext&) const;
- WEBCORE_EXPORT void getHighlight(Highlight*, InspectorOverlay::CoordinateSystem) const;
+ void drawHighlight(GraphicsContext&) const;
+ void getHighlight(Highlight*, InspectorOverlay::CoordinateSystem) const;
void hideHighlight();
Node* highlightedNode() const;
void setIndicating(bool);
- WEBCORE_EXPORT PassRefPtr<Inspector::InspectorObject> buildObjectForHighlightedNode() const;
+ PassRefPtr<Inspector::InspectorObject> buildObjectForHighlightedNode() const;
bool isUnderTest() const { return m_isUnderTest; }
void setIsUnderTest(bool isUnderTest) { m_isUnderTest = isUnderTest; }
- WEBCORE_EXPORT void evaluateForTestInFrontend(const String& script);
+ void evaluateForTestInFrontend(const String& script);
- WEBCORE_EXPORT bool profilerEnabled() const;
- WEBCORE_EXPORT void setProfilerEnabled(bool);
+ bool profilerEnabled() const;
+ void setProfilerEnabled(bool);
void resume();
virtual void setProperty(const String& name, const String& value);
};
- WEBCORE_EXPORT InspectorFrontendClientLocal(InspectorController*, Page*, std::unique_ptr<Settings>);
- WEBCORE_EXPORT virtual ~InspectorFrontendClientLocal();
+ InspectorFrontendClientLocal(InspectorController*, Page*, std::unique_ptr<Settings>);
+ virtual ~InspectorFrontendClientLocal();
- WEBCORE_EXPORT virtual void windowObjectCleared() override;
- WEBCORE_EXPORT virtual void frontendLoaded() override;
+ virtual void windowObjectCleared() override;
+ virtual void frontendLoaded() override;
- WEBCORE_EXPORT virtual void moveWindowBy(float x, float y) override;
+ virtual void moveWindowBy(float x, float y) override;
- WEBCORE_EXPORT virtual void requestSetDockSide(DockSide) override;
- WEBCORE_EXPORT virtual void changeAttachedWindowHeight(unsigned) override;
- WEBCORE_EXPORT virtual void changeAttachedWindowWidth(unsigned) override;
- WEBCORE_EXPORT virtual void openInNewTab(const String& url) override;
+ virtual void requestSetDockSide(DockSide) override;
+ virtual void changeAttachedWindowHeight(unsigned) override;
+ virtual void changeAttachedWindowWidth(unsigned) override;
+ virtual void openInNewTab(const String& url) override;
virtual bool canSave() override { return false; }
virtual void save(const String&, const String&, bool, bool) override { }
virtual void append(const String&, const String&) override { }
virtual void attachWindow(DockSide) = 0;
virtual void detachWindow() = 0;
- WEBCORE_EXPORT virtual void sendMessageToBackend(const String& message) override;
+ virtual void sendMessageToBackend(const String& message) override;
- WEBCORE_EXPORT virtual bool isUnderTest() override;
+ virtual bool isUnderTest() override;
- WEBCORE_EXPORT bool canAttachWindow();
- WEBCORE_EXPORT void setDockingUnavailable(bool);
+ bool canAttachWindow();
+ void setDockingUnavailable(bool);
- WEBCORE_EXPORT static unsigned constrainedAttachedWindowHeight(unsigned preferredHeight, unsigned totalWindowHeight);
- WEBCORE_EXPORT static unsigned constrainedAttachedWindowWidth(unsigned preferredWidth, unsigned totalWindowWidth);
+ static unsigned constrainedAttachedWindowHeight(unsigned preferredHeight, unsigned totalWindowHeight);
+ static unsigned constrainedAttachedWindowWidth(unsigned preferredWidth, unsigned totalWindowWidth);
// Direct Frontend API
- WEBCORE_EXPORT bool isDebuggingEnabled();
- WEBCORE_EXPORT void setDebuggingEnabled(bool);
+ bool isDebuggingEnabled();
+ void setDebuggingEnabled(bool);
- WEBCORE_EXPORT bool isTimelineProfilingEnabled();
- WEBCORE_EXPORT void setTimelineProfilingEnabled(bool);
+ bool isTimelineProfilingEnabled();
+ void setTimelineProfilingEnabled(bool);
- WEBCORE_EXPORT bool isProfilingJavaScript();
- WEBCORE_EXPORT void startProfilingJavaScript();
- WEBCORE_EXPORT void stopProfilingJavaScript();
+ bool isProfilingJavaScript();
+ void startProfilingJavaScript();
+ void stopProfilingJavaScript();
- WEBCORE_EXPORT void showConsole();
+ void showConsole();
- WEBCORE_EXPORT void showMainResourceForFrame(Frame*);
+ void showMainResourceForFrame(Frame*);
- WEBCORE_EXPORT void showResources();
+ void showResources();
- WEBCORE_EXPORT void setAttachedWindow(DockSide);
+ void setAttachedWindow(DockSide);
protected:
virtual void setAttachedWindowHeight(unsigned) = 0;
virtual void setAttachedWindowWidth(unsigned) = 0;
- WEBCORE_EXPORT void restoreAttachedWindowHeight();
+ void restoreAttachedWindowHeight();
private:
bool evaluateAsBoolean(const String& expression);
static void networkStateChangedImpl(InstrumentingAgents*);
static void updateApplicationCacheStatusImpl(InstrumentingAgents*, Frame*);
- WEBCORE_EXPORT static InstrumentingAgents* instrumentingAgentsForPage(Page*);
+ static InstrumentingAgents* instrumentingAgentsForPage(Page*);
static InstrumentingAgents* instrumentingAgentsForFrame(Frame*);
static InstrumentingAgents* instrumentingAgentsForContext(ScriptExecutionContext*);
static InstrumentingAgents* instrumentingAgentsForDocument(Document*);
static void renderLayerDestroyedImpl(InstrumentingAgents*, const RenderLayer*);
static void pseudoElementDestroyedImpl(InstrumentingAgents*, PseudoElement*);
- WEBCORE_EXPORT static int s_frontendCounter;
+ static int s_frontendCounter;
#endif
};
{
}
- WEBCORE_EXPORT FrameLoadRequest(Frame*, const ResourceRequest&, const SubstituteData& = SubstituteData());
+ FrameLoadRequest(Frame*, const ResourceRequest&, const SubstituteData& = SubstituteData());
bool isEmpty() const { return m_resourceRequest.isEmpty(); }
FrameLoader(Frame&, FrameLoaderClient&);
~FrameLoader();
- WEBCORE_EXPORT void init();
+ void init();
#if PLATFORM(IOS)
void initForSynthesizedDocument(const URL&);
#endif
void setupForReplace();
// FIXME: These are all functions which start loads. We have too many.
- WEBCORE_EXPORT void loadURLIntoChildFrame(const URL&, const String& referer, Frame*);
- WEBCORE_EXPORT void loadFrameRequest(const FrameLoadRequest&, LockHistory, LockBackForwardList, // Called by submitForm, calls loadPostRequest and loadURL.
+ void loadURLIntoChildFrame(const URL&, const String& referer, Frame*);
+ void loadFrameRequest(const FrameLoadRequest&, LockHistory, LockBackForwardList, // Called by submitForm, calls loadPostRequest and loadURL.
PassRefPtr<Event>, PassRefPtr<FormState>, ShouldSendReferrer, AllowNavigationToInvalidURL);
- WEBCORE_EXPORT void load(const FrameLoadRequest&);
+ void load(const FrameLoadRequest&);
#if ENABLE(WEB_ARCHIVE) || ENABLE(MHTML)
- WEBCORE_EXPORT void loadArchive(PassRefPtr<Archive>);
+ void loadArchive(PassRefPtr<Archive>);
#endif
unsigned long loadResourceSynchronously(const ResourceRequest&, StoredCredentials, ClientCredentialPolicy, ResourceError&, ResourceResponse&, Vector<char>& data);
void urlSelected(const URL&, const String& target, PassRefPtr<Event>, LockHistory, LockBackForwardList, ShouldSendReferrer);
void submitForm(PassRefPtr<FormSubmission>);
- WEBCORE_EXPORT void reload(bool endToEndReload = false);
- WEBCORE_EXPORT void reloadWithOverrideEncoding(const String& overrideEncoding);
+ void reload(bool endToEndReload = false);
+ void reloadWithOverrideEncoding(const String& overrideEncoding);
void open(CachedFrameBase&);
void loadItem(HistoryItem*, FrameLoadType);
// FIXME: These are all functions which stop loads. We have too many.
void stopAllLoaders(ClearProvisionalItemPolicy = ShouldClearProvisionalItem);
- WEBCORE_EXPORT void stopForUserCancel(bool deferCheckLoadComplete = false);
+ void stopForUserCancel(bool deferCheckLoadComplete = false);
void stop();
void stopLoading(UnloadEventPolicy);
bool closeURL();
void clear(Document* newDocument, bool clearWindowProperties = true, bool clearScriptObjects = true, bool clearFrameView = true);
bool isLoading() const;
- WEBCORE_EXPORT bool frameHasLoaded() const;
+ bool frameHasLoaded() const;
- WEBCORE_EXPORT int numPendingOrLoadingRequests(bool recurse) const;
+ int numPendingOrLoadingRequests(bool recurse) const;
String referrer() const;
- WEBCORE_EXPORT String outgoingReferrer() const;
+ String outgoingReferrer() const;
String outgoingOrigin() const;
- WEBCORE_EXPORT DocumentLoader* activeDocumentLoader() const;
+ DocumentLoader* activeDocumentLoader() const;
DocumentLoader* documentLoader() const { return m_documentLoader.get(); }
DocumentLoader* policyDocumentLoader() const { return m_policyDocumentLoader.get(); }
DocumentLoader* provisionalDocumentLoader() const { return m_provisionalDocumentLoader.get(); }
void handleFallbackContent();
- WEBCORE_EXPORT ResourceError cancelledError(const ResourceRequest&) const;
+ ResourceError cancelledError(const ResourceRequest&) const;
bool isHostedByObjectElement() const;
bool shouldTreatURLAsSrcdocDocument(const URL&) const;
- WEBCORE_EXPORT FrameLoadType loadType() const;
+ FrameLoadType loadType() const;
CachePolicy subresourceCachePolicy() const;
void tellClientAboutPastMemoryCacheLoads();
void checkLoadComplete();
- WEBCORE_EXPORT void detachFromParent();
+ void detachFromParent();
void detachViewsAndDocumentLoader();
void addExtraFieldsToSubresourceRequest(ResourceRequest&);
bool checkIfFormActionAllowedByCSP(const URL&) const;
Frame* opener();
- WEBCORE_EXPORT void setOpener(Frame*);
+ void setOpener(Frame*);
void resetMultipleFormSubmissionProtection();
void finishedParsing();
void checkCompleted();
- WEBCORE_EXPORT bool isComplete() const;
+ bool isComplete() const;
void commitProvisionalLoad();
FrameLoaderStateMachine& stateMachine() { return m_stateMachine; }
- WEBCORE_EXPORT Frame* findFrameForNavigation(const AtomicString& name, Document* activeDocument = 0);
+ Frame* findFrameForNavigation(const AtomicString& name, Document* activeDocument = 0);
void applyUserAgent(ResourceRequest&);
// introduce a proper callback type for this function, we should make it private again.
void continueLoadAfterWillSubmitForm();
- WEBCORE_EXPORT void setOriginalURLForDownloadRequest(ResourceRequest&);
+ void setOriginalURLForDownloadRequest(ResourceRequest&);
bool suppressOpenerInNewFrame() const { return m_suppressOpenerInNewFrame; }
bool quickRedirectComing() const { return m_quickRedirectComing; }
- WEBCORE_EXPORT bool shouldClose();
+ bool shouldClose();
void started();
};
PageDismissalType pageDismissalEventBeingDispatched() const { return m_pageDismissalEventBeingDispatched; }
- WEBCORE_EXPORT NetworkingContext* networkingContext() const;
+ NetworkingContext* networkingContext() const;
void loadProgressingStatusChanged();
void dispatchDidCommitLoad();
- WEBCORE_EXPORT void urlSelected(const FrameLoadRequest&, PassRefPtr<Event>, LockHistory, LockBackForwardList, ShouldSendReferrer, ShouldReplaceDocumentIfJavaScriptURL, AllowNavigationToInvalidURL);
+ void urlSelected(const FrameLoadRequest&, PassRefPtr<Event>, LockHistory, LockBackForwardList, ShouldSendReferrer, ShouldReplaceDocumentIfJavaScriptURL, AllowNavigationToInvalidURL);
void loadWithDocumentLoader(DocumentLoader*, FrameLoadType, PassRefPtr<FormState>, AllowNavigationToInvalidURL); // Calls continueLoadAfterNavigationPolicy
void load(DocumentLoader*); // Calls loadWithDocumentLoader
void requestFromDelegate(ResourceRequest&, unsigned long& identifier, ResourceError&);
- WEBCORE_EXPORT void detachChildren();
+ void detachChildren();
void closeAndRemoveChild(Frame*);
void loadInSameDocument(const URL&, PassRefPtr<SerializedScriptValue> stateObject, bool isNewNavigation);
bool m_quickRedirectComing;
bool m_sentRedirectNotification;
- WEBCORE_EXPORT bool m_inStopAllLoaders;
+ bool m_inStopAllLoaders;
String m_outgoingReferrer;
FirstLayoutDone
};
- WEBCORE_EXPORT bool committingFirstRealLoad() const;
+ bool committingFirstRealLoad() const;
bool committedFirstRealDocumentLoad() const;
bool creatingInitialEmptyDocument() const;
bool isDisplayingInitialEmptyDocument() const;
- WEBCORE_EXPORT bool firstLayoutDone() const;
+ bool firstLayoutDone() const;
void advanceTo(State);
private:
void saveScrollPositionAndViewStateToItem(HistoryItem*);
void clearScrollPositionAndViewState();
- WEBCORE_EXPORT void restoreScrollPositionAndViewState();
+ void restoreScrollPositionAndViewState();
void updateBackForwardListForFragmentScroll();
void saveDocumentState();
- WEBCORE_EXPORT void saveDocumentAndScrollState();
+ void saveDocumentAndScrollState();
void restoreDocumentState();
void invalidateCurrentItemCachedPage();
void setCurrentItem(HistoryItem*);
void setCurrentItemTitle(const StringWithDirection&);
bool currentItemShouldBeReplaced() const;
- WEBCORE_EXPORT void replaceCurrentItem(HistoryItem*);
+ void replaceCurrentItem(HistoryItem*);
HistoryItem* previousItem() const { return m_previousItem.get(); }
void clearPreviousItem();
class LoaderStrategy {
public:
- WEBCORE_EXPORT virtual ResourceLoadScheduler* resourceLoadScheduler();
+ virtual ResourceLoadScheduler* resourceLoadScheduler();
- WEBCORE_EXPORT virtual void loadResourceSynchronously(NetworkingContext*, unsigned long identifier, const ResourceRequest&, StoredCredentials, ClientCredentialPolicy, ResourceError&, ResourceResponse&, Vector<char>& data);
+ virtual void loadResourceSynchronously(NetworkingContext*, unsigned long identifier, const ResourceRequest&, StoredCredentials, ClientCredentialPolicy, ResourceError&, ResourceResponse&, Vector<char>& data);
- WEBCORE_EXPORT virtual BlobRegistry* createBlobRegistry();
+ virtual BlobRegistry* createBlobRegistry();
protected:
virtual ~LoaderStrategy()
class NavigationAction {
public:
- WEBCORE_EXPORT NavigationAction();
- WEBCORE_EXPORT explicit NavigationAction(const ResourceRequest&);
- WEBCORE_EXPORT NavigationAction(const ResourceRequest&, NavigationType);
- WEBCORE_EXPORT NavigationAction(const ResourceRequest&, FrameLoadType, bool isFormSubmission);
+ NavigationAction();
+ explicit NavigationAction(const ResourceRequest&);
+ NavigationAction(const ResourceRequest&, NavigationType);
+ NavigationAction(const ResourceRequest&, FrameLoadType, bool isFormSubmission);
NavigationAction(const ResourceRequest&, NavigationType, PassRefPtr<Event>);
NavigationAction(const ResourceRequest&, FrameLoadType, bool isFormSubmission, PassRefPtr<Event>);
class NetscapePlugInStreamLoader final : public ResourceLoader {
public:
- WEBCORE_EXPORT static PassRefPtr<NetscapePlugInStreamLoader> create(Frame*, NetscapePlugInStreamLoaderClient*, const ResourceRequest&);
+ static PassRefPtr<NetscapePlugInStreamLoader> create(Frame*, NetscapePlugInStreamLoaderClient*, const ResourceRequest&);
virtual ~NetscapePlugInStreamLoader();
- WEBCORE_EXPORT bool isDone() const;
+ bool isDone() const;
private:
virtual void didReceiveResponse(const ResourceResponse&) override;
static unsigned long createUniqueIdentifier();
- WEBCORE_EXPORT double estimatedProgress() const;
+ double estimatedProgress() const;
void progressStarted(Frame&);
void progressCompleted(Frame&);
class LegacyWebArchive : public Archive {
public:
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create();
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(SharedBuffer*);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(const URL&, SharedBuffer*);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(PassRefPtr<ArchiveResource> mainResource, Vector<RefPtr<ArchiveResource>> subresources, Vector<RefPtr<LegacyWebArchive>> subframeArchives);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(Node*, std::function<bool(Frame&)> frameFilter = nullptr);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(Frame*);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> createFromSelection(Frame*);
- WEBCORE_EXPORT static PassRefPtr<LegacyWebArchive> create(Range*);
+ static PassRefPtr<LegacyWebArchive> create();
+ static PassRefPtr<LegacyWebArchive> create(SharedBuffer*);
+ static PassRefPtr<LegacyWebArchive> create(const URL&, SharedBuffer*);
+ static PassRefPtr<LegacyWebArchive> create(PassRefPtr<ArchiveResource> mainResource, Vector<RefPtr<ArchiveResource>> subresources, Vector<RefPtr<LegacyWebArchive>> subframeArchives);
+ static PassRefPtr<LegacyWebArchive> create(Node*, std::function<bool (Frame&)> frameFilter = nullptr);
+ static PassRefPtr<LegacyWebArchive> create(Frame*);
+ static PassRefPtr<LegacyWebArchive> createFromSelection(Frame*);
+ static PassRefPtr<LegacyWebArchive> create(Range*);
virtual Type type() const override;
- WEBCORE_EXPORT RetainPtr<CFDataRef> rawDataRepresentation();
+ RetainPtr<CFDataRef> rawDataRepresentation();
private:
LegacyWebArchive() { }
TypeStatistic fonts;
};
- WEBCORE_EXPORT CachedResource* resourceForURL(const URL&);
- WEBCORE_EXPORT CachedResource* resourceForURL(const URL&, SessionID);
+ CachedResource* resourceForURL(const URL&);
+ CachedResource* resourceForURL(const URL&, SessionID);
CachedResource* resourceForRequest(const ResourceRequest&, SessionID);
bool add(CachedResource*);
// - minDeadBytes: The maximum number of bytes that dead resources should consume when the cache is under pressure.
// - maxDeadBytes: The maximum number of bytes that dead resources should consume when the cache is not under pressure.
// - totalBytes: The maximum number of bytes that the cache should consume overall.
- WEBCORE_EXPORT void setCapacities(unsigned minDeadBytes, unsigned maxDeadBytes, unsigned totalBytes);
+ void setCapacities(unsigned minDeadBytes, unsigned maxDeadBytes, unsigned totalBytes);
// Turn the cache on and off. Disabling the cache will remove all resources from the cache. They may
// still live on if they are referenced by some Web page though.
- WEBCORE_EXPORT void setDisabled(bool);
+ void setDisabled(bool);
bool disabled() const { return m_disabled; }
- WEBCORE_EXPORT void evictResources();
+ void evictResources();
void setPruneEnabled(bool enabled) { m_pruneEnabled = enabled; }
void prune();
void removeFromLiveResourcesSize(CachedResource*);
#if ENABLE(DISK_IMAGE_CACHE)
- WEBCORE_EXPORT void flushCachedImagesToDisk(); // Flush encoded data from resources still referenced by web pages.
+ void flushCachedImagesToDisk(); // Flush encoded data from resources still referenced by web pages.
#endif
static void removeUrlFromCache(ScriptExecutionContext*, const String& urlString, SessionID);
static void removeRequestFromSessionCaches(ScriptExecutionContext*, const ResourceRequest&);
// Function to collect cache statistics for the caches window in the Safari Debug menu.
- WEBCORE_EXPORT Statistics getStatistics();
+ Statistics getStatistics();
void resourceAccessed(CachedResource*);
typedef HashSet<RefPtr<SecurityOrigin>> SecurityOriginSet;
- WEBCORE_EXPORT void removeResourcesWithOrigin(SecurityOrigin*);
- WEBCORE_EXPORT void getOriginsWithCache(SecurityOriginSet& origins);
+ void removeResourcesWithOrigin(SecurityOrigin*);
+ void getOriginsWithCache(SecurityOriginSet& origins);
unsigned minDeadCapacity() const { return m_minDeadCapacity; }
unsigned maxDeadCapacity() const { return m_maxDeadCapacity; }
#if USE(CG)
// FIXME: Remove the USE(CG) once we either make NativeImagePtr a smart pointer on all platforms or
// remove the usage of CFRetain() in MemoryCache::addImageToCache() so as to make the code platform-independent.
- WEBCORE_EXPORT bool addImageToCache(NativeImagePtr, const URL&, const String& cachePartition);
- WEBCORE_EXPORT void removeImageFromCache(const URL&, const String& cachePartition);
+ bool addImageToCache(NativeImagePtr, const URL&, const String& cachePartition);
+ void removeImageFromCache(const URL&, const String& cachePartition);
#endif
// pruneDead*() - Flush decoded and encoded data from resources not referenced by Web pages.
// pruneLive*() - Flush decoded data from resources still referenced by Web pages.
- WEBCORE_EXPORT void pruneDeadResources(); // Automatically decide how much to prune.
- WEBCORE_EXPORT void pruneLiveResources(bool shouldDestroyDecodedDataForAllLiveResources = false);
+ void pruneDeadResources(); // Automatically decide how much to prune.
+ void pruneLiveResources(bool shouldDestroyDecodedDataForAllLiveResources = false);
private:
void pruneDeadResourcesToPercentage(float prunePercentage); // Prune to % current size
void evict(CachedResource*);
- WEBCORE_EXPORT CachedResource* resourceForRequestImpl(const ResourceRequest&, CachedResourceMap&);
+ CachedResource* resourceForRequestImpl(const ResourceRequest&, CachedResourceMap&);
static void removeRequestFromCacheImpl(ScriptExecutionContext*, const ResourceRequest&, SessionID);
static void removeRequestFromSessionCachesImpl(ScriptExecutionContext*, const ResourceRequest&);
static void crossThreadRemoveRequestFromCache(ScriptExecutionContext&, PassOwnPtr<CrossThreadResourceRequestData>, SessionID);
explicit IconController(Frame&);
~IconController();
- WEBCORE_EXPORT URL url();
+ URL url();
IconURLs urlsForTypes(int iconTypesMask);
IconURL iconURL(IconType) const;
// *** Main Thread Only ***
public:
- WEBCORE_EXPORT IconDatabase();
+ IconDatabase();
~IconDatabase();
- WEBCORE_EXPORT virtual void setClient(IconDatabaseClient*) override;
+ virtual void setClient(IconDatabaseClient*) override;
- WEBCORE_EXPORT virtual bool open(const String& directory, const String& filename) override;
- WEBCORE_EXPORT virtual void close() override;
+ virtual bool open(const String& directory, const String& filename) override;
+ virtual void close() override;
- WEBCORE_EXPORT virtual void removeAllIcons() override;
+ virtual void removeAllIcons() override;
void readIconForPageURLFromDisk(const String&);
- WEBCORE_EXPORT virtual Image* defaultIcon(const IntSize&) override;
+ virtual Image* defaultIcon(const IntSize&) override;
- WEBCORE_EXPORT virtual void retainIconForPageURL(const String&) override;
- WEBCORE_EXPORT virtual void releaseIconForPageURL(const String&) override;
- WEBCORE_EXPORT virtual void setIconDataForIconURL(PassRefPtr<SharedBuffer> data, const String&) override;
- WEBCORE_EXPORT virtual void setIconURLForPageURL(const String& iconURL, const String& pageURL) override;
+ virtual void retainIconForPageURL(const String&) override;
+ virtual void releaseIconForPageURL(const String&) override;
+ virtual void setIconDataForIconURL(PassRefPtr<SharedBuffer> data, const String&) override;
+ virtual void setIconURLForPageURL(const String& iconURL, const String& pageURL) override;
- WEBCORE_EXPORT virtual Image* synchronousIconForPageURL(const String&, const IntSize&) override;
+ virtual Image* synchronousIconForPageURL(const String&, const IntSize&) override;
virtual PassNativeImagePtr synchronousNativeIconForPageURL(const String& pageURLOriginal, const IntSize&) override;
- WEBCORE_EXPORT virtual String synchronousIconURLForPageURL(const String&) override;
+ virtual String synchronousIconURLForPageURL(const String&) override;
virtual bool synchronousIconDataKnownForIconURL(const String&) override;
- WEBCORE_EXPORT virtual IconLoadDecision synchronousLoadDecisionForIconURL(const String&, DocumentLoader*) override;
+ virtual IconLoadDecision synchronousLoadDecisionForIconURL(const String&, DocumentLoader*) override;
- WEBCORE_EXPORT virtual void setEnabled(bool) override;
+ virtual void setEnabled(bool) override;
virtual bool isEnabled() const override;
- WEBCORE_EXPORT virtual void setPrivateBrowsingEnabled(bool flag) override;
+ virtual void setPrivateBrowsingEnabled(bool flag) override;
bool isPrivateBrowsingEnabled() const;
- WEBCORE_EXPORT static void delayDatabaseCleanup();
- WEBCORE_EXPORT static void allowDatabaseCleanup();
- WEBCORE_EXPORT static void checkIntegrityBeforeOpening();
+ static void delayDatabaseCleanup();
+ static void allowDatabaseCleanup();
+ static void checkIntegrityBeforeOpening();
// Support for WebCoreStatistics in WebKit
- WEBCORE_EXPORT virtual size_t pageURLMappingCount() override;
- WEBCORE_EXPORT virtual size_t retainedPageURLCount() override;
- WEBCORE_EXPORT virtual size_t iconRecordCount() override;
- WEBCORE_EXPORT virtual size_t iconRecordCountWithData() override;
+ virtual size_t pageURLMappingCount() override;
+ virtual size_t retainedPageURLCount() override;
+ virtual size_t iconRecordCount() override;
+ virtual size_t iconRecordCountWithData() override;
private:
friend IconDatabaseBase& iconDatabase();
// *** Any Thread ***
public:
- WEBCORE_EXPORT virtual bool isOpen() const;
- WEBCORE_EXPORT virtual String databasePath() const;
- WEBCORE_EXPORT static String defaultDatabaseFilename();
+ virtual bool isOpen() const;
+ virtual String databasePath() const;
+ static String defaultDatabaseFilename();
private:
PassRefPtr<IconRecord> getOrCreateIconRecord(const String& iconURL);
PageURLRecord* getOrCreatePageURLRecord(const String& pageURL);
- WEBCORE_EXPORT bool m_isEnabled;
+ bool m_isEnabled;
bool m_privateBrowsingEnabled;
mutable Mutex m_syncLock;
// *** Sync Thread Only ***
public:
- WEBCORE_EXPORT virtual bool shouldStopThreadActivity() const;
+ virtual bool shouldStopThreadActivity() const;
private:
static void iconDatabaseSyncThreadStart(void *);
// Synchronous calls used internally by WebCore.
// Usage should be replaced by asynchronous calls.
- WEBCORE_EXPORT virtual String synchronousIconURLForPageURL(const String&);
+ virtual String synchronousIconURLForPageURL(const String&);
virtual bool synchronousIconDataKnownForIconURL(const String&) { return false; }
virtual IconLoadDecision synchronousLoadDecisionForIconURL(const String&, DocumentLoader*) { return IconLoadNo; }
virtual Image* synchronousIconForPageURL(const String&, const IntSize&) { return 0; }
virtual bool shouldStopThreadActivity() const { return true; }
- WEBCORE_EXPORT virtual bool open(const String& directory, const String& filename);
+ virtual bool open(const String& directory, const String& filename);
virtual void close() { }
virtual void removeAllIcons() { }
virtual void setClient(IconDatabaseClient*) { }
virtual bool isOpen() const { return false; }
- WEBCORE_EXPORT virtual String databasePath() const;
+ virtual String databasePath() const;
};
public:
ContainerNode* rootNode() const;
Element* owner() const;
- WEBCORE_EXPORT static FocusNavigationScope focusNavigationScopeOf(Node*);
+ static FocusNavigationScope focusNavigationScopeOf(Node*);
static FocusNavigationScope focusNavigationScopeOwnedByShadowHost(Node*);
static FocusNavigationScope focusNavigationScopeOwnedByIFrame(HTMLFrameOwnerElement*);
public:
explicit FocusController(Page&, ViewState::Flags);
- WEBCORE_EXPORT void setFocusedFrame(PassRefPtr<Frame>);
+ void setFocusedFrame(PassRefPtr<Frame>);
Frame* focusedFrame() const { return m_focusedFrame.get(); }
- WEBCORE_EXPORT Frame& focusedOrMainFrame() const;
+ Frame& focusedOrMainFrame() const;
- WEBCORE_EXPORT bool setInitialFocus(FocusDirection, KeyboardEvent*);
+ bool setInitialFocus(FocusDirection, KeyboardEvent*);
bool advanceFocus(FocusDirection, KeyboardEvent*, bool initialFocus = false);
- WEBCORE_EXPORT bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusDirection = FocusDirectionNone);
+ bool setFocusedElement(Element*, PassRefPtr<Frame>, FocusDirection = FocusDirectionNone);
void setViewState(ViewState::Flags);
- WEBCORE_EXPORT void setActive(bool);
+ void setActive(bool);
bool isActive() const { return m_viewState & ViewState::WindowIsActive; }
- WEBCORE_EXPORT void setFocused(bool);
+ void setFocused(bool);
bool isFocused() const { return m_viewState & ViewState::IsFocused; }
bool contentIsVisible() const { return m_viewState & ViewState::IsVisible; }
// These methods are used in WebCore/bindings/objc/DOM.mm.
- WEBCORE_EXPORT Element* nextFocusableElement(FocusNavigationScope, Node* start, KeyboardEvent*);
- WEBCORE_EXPORT Element* previousFocusableElement(FocusNavigationScope, Node* start, KeyboardEvent*);
+ Element* nextFocusableElement(FocusNavigationScope, Node* start, KeyboardEvent*);
+ Element* previousFocusableElement(FocusNavigationScope, Node* start, KeyboardEvent*);
void setFocusedElementNeedsRepaint();
double timeSinceFocusWasSet() const;
class Frame : public RefCounted<Frame> {
public:
- WEBCORE_EXPORT static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*);
+ static PassRefPtr<Frame> create(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*);
void init();
#if PLATFORM(IOS)
// Creates <html><body style="..."></body></html> doing minimal amount of work.
- WEBCORE_EXPORT void initWithSimpleHTMLDocument(const String& style, const URL&);
+ void initWithSimpleHTMLDocument(const String& style, const URL&);
#endif
- WEBCORE_EXPORT void setView(PassRefPtr<FrameView>);
- WEBCORE_EXPORT void createView(const IntSize&, const Color&, bool,
+ void setView(PassRefPtr<FrameView>);
+ void createView(const IntSize&, const Color&, bool,
const IntSize& fixedLayoutSize = IntSize(), const IntRect& fixedVisibleContentRect = IntRect(),
bool useFixedLayout = false, ScrollbarMode = ScrollbarAuto, bool horizontalLock = false,
ScrollbarMode = ScrollbarAuto, bool verticalLock = false);
- WEBCORE_EXPORT virtual ~Frame();
+ virtual ~Frame();
void addDestructionObserver(FrameDestructionObserver*);
void removeDestructionObserver(FrameDestructionObserver*);
AnimationController& animation() const;
ScriptController& script();
- WEBCORE_EXPORT RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
- WEBCORE_EXPORT RenderWidget* ownerRenderer() const; // Renderer for the element that contains this frame.
+ RenderView* contentRenderer() const; // Root of the render tree for the document contained in this frame.
+ RenderWidget* ownerRenderer() const; // Renderer for the element that contains this frame.
// ======== All public functions below this point are candidates to move out of Frame into another class. ========
void injectUserScripts(UserScriptInjectionTime);
- WEBCORE_EXPORT String layerTreeAsText(LayerTreeFlags = 0) const;
- WEBCORE_EXPORT String trackedRepaintRectsAsText() const;
+ String layerTreeAsText(LayerTreeFlags = 0) const;
+ String trackedRepaintRectsAsText() const;
- WEBCORE_EXPORT static Frame* frameForWidget(const Widget*);
+ static Frame* frameForWidget(const Widget*);
Settings& settings() const { return *m_settings; }
void setPrinting(bool printing, const FloatSize& pageSize, const FloatSize& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot);
bool shouldUsePrintingLayout() const;
- WEBCORE_EXPORT FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const FloatSize& expectedSize);
+ FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const FloatSize& expectedSize);
void setDocument(PassRefPtr<Document>);
- WEBCORE_EXPORT void setPageZoomFactor(float);
+ void setPageZoomFactor(float factor);
float pageZoomFactor() const { return m_pageZoomFactor; }
- WEBCORE_EXPORT void setTextZoomFactor(float);
+ void setTextZoomFactor(float factor);
float textZoomFactor() const { return m_textZoomFactor; }
- WEBCORE_EXPORT void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFactor);
+ void setPageAndTextZoomFactors(float pageZoomFactor, float textZoomFactor);
// Scale factor of this frame with respect to the container.
- WEBCORE_EXPORT float frameScaleFactor() const;
+ float frameScaleFactor() const;
void deviceOrPageScaleFactorChanged();
#if PLATFORM(IOS)
const ViewportArguments& viewportArguments() const;
- WEBCORE_EXPORT void setViewportArguments(const ViewportArguments&);
+ void setViewportArguments(const ViewportArguments&);
- WEBCORE_EXPORT Node* deepestNodeAtLocation(const FloatPoint& viewportLocation);
- WEBCORE_EXPORT Node* nodeRespondingToClickEvents(const FloatPoint& viewportLocation, FloatPoint& adjustedViewportLocation);
- WEBCORE_EXPORT Node* nodeRespondingToScrollWheelEvents(const FloatPoint& viewportLocation);
+ Node* deepestNodeAtLocation(const FloatPoint& viewportLocation);
+ Node* nodeRespondingToClickEvents(const FloatPoint& viewportLocation, FloatPoint& adjustedViewportLocation);
+ Node* nodeRespondingToScrollWheelEvents(const FloatPoint& viewportLocation);
int indexCountOfWordPrecedingSelection(NSString* word) const;
- WEBCORE_EXPORT NSArray* wordsInCurrentParagraph() const;
- WEBCORE_EXPORT CGRect renderRectForPoint(CGPoint, bool* isReplaced, float* fontSize) const;
+ NSArray* wordsInCurrentParagraph() const;
+ CGRect renderRectForPoint(CGPoint, bool* isReplaced, float* fontSize) const;
- WEBCORE_EXPORT void setSelectionChangeCallbacksDisabled(bool = true);
+ void setSelectionChangeCallbacksDisabled(bool = true);
bool selectionChangeCallbacksDisabled() const;
enum ViewportOffsetChangeType { IncrementalScrollOffset, CompletedScrollOffset };
- WEBCORE_EXPORT void viewportOffsetChanged(ViewportOffsetChangeType);
+ void viewportOffsetChanged(ViewportOffsetChangeType);
bool containsTiledBackingLayers() const;
- WEBCORE_EXPORT void overflowScrollPositionChangedForNode(const IntPoint&, Node*, bool isUserScroll);
+ void overflowScrollPositionChangedForNode(const IntPoint&, Node*, bool isUserScroll);
- WEBCORE_EXPORT void resetAllGeolocationPermission();
+ void resetAllGeolocationPermission();
#endif
#if ENABLE(ORIENTATION_EVENTS)
// Orientation is the interface orientation in degrees. Some examples are:
// 0 is straight up; -90 is when the device is rotated 90 clockwise;
// 90 is when rotated counter clockwise.
- WEBCORE_EXPORT void orientationChanged();
+ void orientationChanged();
int orientation() const;
#endif
void clearTimers();
static void clearTimers(FrameView*, Document*);
- WEBCORE_EXPORT String displayStringModifiedByEncoding(const String&) const;
+ String displayStringModifiedByEncoding(const String&) const;
- WEBCORE_EXPORT VisiblePosition visiblePositionForPoint(const IntPoint& framePoint);
+ VisiblePosition visiblePositionForPoint(const IntPoint& framePoint);
Document* documentAtPoint(const IntPoint& windowPoint);
- WEBCORE_EXPORT PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint);
+ PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint);
- WEBCORE_EXPORT String searchForLabelsAboveCell(const JSC::Yarr::RegularExpression&, HTMLTableCellElement*, size_t* resultDistanceFromStartOfCell);
+ String searchForLabelsAboveCell(const JSC::Yarr::RegularExpression&, HTMLTableCellElement*, size_t* resultDistanceFromStartOfCell);
String searchForLabelsBeforeElement(const Vector<String>& labels, Element*, size_t* resultDistance, bool* resultIsInCellAbove);
String matchLabelsAgainstElement(const Vector<String>& labels, Element*);
// Scroll the selection in an overflow layer on iOS.
void scrollOverflowLayer(RenderLayer* , const IntRect& visibleRect, const IntRect& exposeRect);
- WEBCORE_EXPORT int preferredHeight() const;
- WEBCORE_EXPORT int innerLineHeight(DOMNode*) const;
- WEBCORE_EXPORT void updateLayout() const;
- WEBCORE_EXPORT NSRect caretRect() const;
- WEBCORE_EXPORT NSRect rectForScrollToVisible() const;
- WEBCORE_EXPORT DOMCSSStyleDeclaration* styleAtSelectionStart() const;
- WEBCORE_EXPORT unsigned formElementsCharacterCount() const;
- WEBCORE_EXPORT void setTimersPaused(bool);
+ int preferredHeight() const;
+ int innerLineHeight(DOMNode*) const;
+ void updateLayout() const;
+ NSRect caretRect() const;
+ NSRect rectForScrollToVisible() const;
+ DOMCSSStyleDeclaration* styleAtSelectionStart() const;
+ unsigned formElementsCharacterCount() const;
+ void setTimersPaused(bool);
bool timersPaused() const { return m_timersPausedCount; }
- WEBCORE_EXPORT void dispatchPageHideEventBeforePause();
- WEBCORE_EXPORT void dispatchPageShowEventBeforeResume();
- WEBCORE_EXPORT void setRangedSelectionBaseToCurrentSelection();
- WEBCORE_EXPORT void setRangedSelectionBaseToCurrentSelectionStart();
- WEBCORE_EXPORT void setRangedSelectionBaseToCurrentSelectionEnd();
- WEBCORE_EXPORT void clearRangedSelectionInitialExtent();
- WEBCORE_EXPORT void setRangedSelectionInitialExtentToCurrentSelectionStart();
- WEBCORE_EXPORT void setRangedSelectionInitialExtentToCurrentSelectionEnd();
+ void dispatchPageHideEventBeforePause();
+ void dispatchPageShowEventBeforeResume();
+ void setRangedSelectionBaseToCurrentSelection();
+ void setRangedSelectionBaseToCurrentSelectionStart();
+ void setRangedSelectionBaseToCurrentSelectionEnd();
+ void clearRangedSelectionInitialExtent();
+ void setRangedSelectionInitialExtentToCurrentSelectionStart();
+ void setRangedSelectionInitialExtentToCurrentSelectionEnd();
VisibleSelection rangedSelectionBase() const;
- WEBCORE_EXPORT VisibleSelection rangedSelectionInitialExtent() const;
- WEBCORE_EXPORT void recursiveSetUpdateAppearanceEnabled(bool);
- WEBCORE_EXPORT NSArray* interpretationsForCurrentRoot() const;
+ VisibleSelection rangedSelectionInitialExtent() const;
+ void recursiveSetUpdateAppearanceEnabled(bool);
+ NSArray* interpretationsForCurrentRoot() const;
#endif
void suspendActiveDOMObjectsAndAnimations();
void resumeActiveDOMObjectsAndAnimations();
class FrameDestructionObserver {
public:
- WEBCORE_EXPORT explicit FrameDestructionObserver(Frame*);
+ WEBCORE_TESTING explicit FrameDestructionObserver(Frame*);
- WEBCORE_EXPORT virtual void frameDestroyed();
- WEBCORE_EXPORT virtual void willDetachPage();
+ WEBCORE_TESTING virtual void frameDestroyed();
+ WEBCORE_TESTING virtual void willDetachPage();
Frame* frame() const { return m_frame; }
protected:
- WEBCORE_EXPORT virtual ~FrameDestructionObserver();
- WEBCORE_EXPORT void observeFrame(Frame*);
+ WEBCORE_TESTING virtual ~FrameDestructionObserver();
+ WEBCORE_TESTING void observeFrame(Frame*);
Frame* m_frame;
};
const AtomicString& name() const { return m_name; }
const AtomicString& uniqueName() const { return m_uniqueName; }
- WEBCORE_EXPORT void setName(const AtomicString&);
- WEBCORE_EXPORT void clearName();
- WEBCORE_EXPORT Frame* parent() const;
+ void setName(const AtomicString&);
+ void clearName();
+ Frame* parent() const;
void setParent(Frame* parent) { m_parent = parent; }
Frame* nextSibling() const { return m_nextSibling.get(); }
Frame* firstChild() const { return m_firstChild.get(); }
Frame* lastChild() const { return m_lastChild; }
- WEBCORE_EXPORT bool isDescendantOf(const Frame* ancestor) const;
- WEBCORE_EXPORT Frame* traverseNext(const Frame* stayWithin = 0) const;
- WEBCORE_EXPORT Frame* traverseNextWithWrap(bool) const;
- WEBCORE_EXPORT Frame* traversePreviousWithWrap(bool) const;
+ bool isDescendantOf(const Frame* ancestor) const;
+ Frame* traverseNext(const Frame* stayWithin = 0) const;
+ Frame* traverseNextWithWrap(bool) const;
+ Frame* traversePreviousWithWrap(bool) const;
- WEBCORE_EXPORT void appendChild(PassRefPtr<Frame>);
+ void appendChild(PassRefPtr<Frame>);
bool transferChild(PassRefPtr<Frame>);
void detachFromParent() { m_parent = 0; }
void removeChild(Frame*);
Frame* child(unsigned index) const;
Frame* child(const AtomicString& name) const;
- WEBCORE_EXPORT Frame* find(const AtomicString& name) const;
- WEBCORE_EXPORT unsigned childCount() const;
+ Frame* find(const AtomicString& name) const;
+ unsigned childCount() const;
AtomicString uniqueChildName(const AtomicString& requestedName) const;
- WEBCORE_EXPORT Frame& top() const;
+ Frame& top() const;
Frame* scopedChild(unsigned index) const;
Frame* scopedChild(const AtomicString& name) const;
friend class RenderView;
friend class Internals;
- WEBCORE_EXPORT static PassRefPtr<FrameView> create(Frame&);
+ static PassRefPtr<FrameView> create(Frame&);
static PassRefPtr<FrameView> create(Frame&, const IntSize& initialSize);
virtual ~FrameView();
virtual HostWindow* hostWindow() const override;
- WEBCORE_EXPORT virtual void invalidateRect(const IntRect&) override;
+ virtual void invalidateRect(const IntRect&) override;
virtual void setFrameRect(const IntRect&) override;
#if ENABLE(REQUEST_ANIMATION_FRAME)
Frame& frame() const { return *m_frame; }
- WEBCORE_EXPORT RenderView* renderView() const;
+ RenderView* renderView() const;
int mapFromLayoutToCSSUnits(LayoutUnit) const;
LayoutUnit mapFromCSSToLayoutUnits(int) const;
void setMarginWidth(LayoutUnit);
void setMarginHeight(LayoutUnit);
- WEBCORE_EXPORT virtual void setCanHaveScrollbars(bool) override;
- WEBCORE_EXPORT void updateCanHaveScrollbars();
+ virtual void setCanHaveScrollbars(bool) override;
+ void updateCanHaveScrollbars();
virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation) override;
virtual void setContentsSize(const IntSize&) override;
void layout(bool allowSubtree = true);
- WEBCORE_EXPORT bool didFirstLayout() const;
+ bool didFirstLayout() const;
void layoutTimerFired(Timer<FrameView>&);
void scheduleRelayout();
void scheduleRelayoutOfSubtree(RenderElement&);
void clearLayoutRoot() { m_layoutRoot = nullptr; }
int layoutCount() const { return m_layoutCount; }
- WEBCORE_EXPORT bool needsLayout() const;
- WEBCORE_EXPORT void setNeedsLayout();
+ bool needsLayout() const;
+ void setNeedsLayout();
void setViewportConstrainedObjectsNeedLayout();
bool needsFullRepaint() const { return m_needsFullRepaint; }
- WEBCORE_EXPORT bool renderedCharactersExceed(unsigned threshold);
+ bool renderedCharactersExceed(unsigned threshold);
#if PLATFORM(IOS)
bool useCustomFixedPositionLayoutRect() const { return m_useCustomFixedPositionLayoutRect; }
IntRect customFixedPositionLayoutRect() const { return m_customFixedPositionLayoutRect; }
- WEBCORE_EXPORT void setCustomFixedPositionLayoutRect(const IntRect&);
+ void setCustomFixedPositionLayoutRect(const IntRect&);
bool updateFixedPositionLayoutRect();
IntSize customSizeForResizeEvent() const { return m_customSizeForResizeEvent; }
- WEBCORE_EXPORT void setCustomSizeForResizeEvent(IntSize);
+ void setCustomSizeForResizeEvent(IntSize);
- WEBCORE_EXPORT void setScrollVelocity(double horizontalVelocity, double verticalVelocity, double scaleChangeRate, double timestamp);
+ void setScrollVelocity(double horizontalVelocity, double verticalVelocity, double scaleChangeRate, double timestamp);
FloatRect computeCoverageRect(double horizontalMargin, double verticalMargin) const;
#else
bool useCustomFixedPositionLayoutRect() const { return false; }
#endif
#if ENABLE(REQUEST_ANIMATION_FRAME)
- WEBCORE_EXPORT void serviceScriptedAnimations(double monotonicAnimationStartTime);
+ void serviceScriptedAnimations(double monotonicAnimationStartTime);
#endif
void updateCompositingLayersAfterStyleChange();
// content rendered via the normal painting path.
void setNeedsOneShotDrawingSynchronization();
- WEBCORE_EXPORT GraphicsLayer* graphicsLayerForPlatformWidget(PlatformWidget);
- WEBCORE_EXPORT void scheduleLayerFlushAllowingThrottling();
+ GraphicsLayer* graphicsLayerForPlatformWidget(PlatformWidget);
+ void scheduleLayerFlushAllowingThrottling();
- WEBCORE_EXPORT virtual TiledBacking* tiledBacking() const override;
+ virtual TiledBacking* tiledBacking() const override;
// In the future when any ScrollableArea can have a node in th ScrollingTree, this should
// become a virtual function on ScrollableArea.
bool hasCompositedContent() const;
bool hasCompositedContentIncludingDescendants() const;
bool hasCompositingAncestor() const;
- WEBCORE_EXPORT void enterCompositingMode();
- WEBCORE_EXPORT bool isEnclosedInCompositingLayer() const;
+ void enterCompositingMode();
+ bool isEnclosedInCompositingLayer() const;
// Only used with accelerated compositing, but outside the #ifdef to make linkage easier.
// Returns true if the flush was completed.
- WEBCORE_EXPORT bool flushCompositingStateIncludingSubframes();
+ bool flushCompositingStateIncludingSubframes();
// Returns true when a paint with the PaintBehaviorFlattenCompositingLayers flag set gives
// a faithful representation of the content.
- WEBCORE_EXPORT bool isSoftwareRenderable() const;
+ bool isSoftwareRenderable() const;
void didMoveOnscreen();
void willMoveOffscreen();
void clear();
- WEBCORE_EXPORT bool isTransparent() const;
- WEBCORE_EXPORT void setTransparent(bool isTransparent);
+ bool isTransparent() const;
+ void setTransparent(bool isTransparent);
// True if the FrameView is not transparent, and the base background color is opaque.
bool hasOpaqueBackground() const;
- WEBCORE_EXPORT Color baseBackgroundColor() const;
- WEBCORE_EXPORT void setBaseBackgroundColor(const Color&);
+ Color baseBackgroundColor() const;
+ void setBaseBackgroundColor(const Color&);
void updateBackgroundRecursively(const Color&, bool);
enum ExtendedBackgroundModeFlags {
IntRect extendedBackgroundRectForPainting() const;
bool shouldUpdateWhileOffscreen() const;
- WEBCORE_EXPORT void setShouldUpdateWhileOffscreen(bool);
+ void setShouldUpdateWhileOffscreen(bool);
bool shouldUpdate() const;
- WEBCORE_EXPORT void adjustViewSize();
+ void adjustViewSize();
- WEBCORE_EXPORT void setViewportSizeForCSSViewportUnits(IntSize);
+ void setViewportSizeForCSSViewportUnits(IntSize);
IntSize viewportSizeForCSSViewportUnits() const;
virtual IntRect windowClipRect(bool clipToContents = true) const override;
- WEBCORE_EXPORT IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipToLayerContents) const;
+ IntRect windowClipRectForFrameOwner(const HTMLFrameOwnerElement*, bool clipToLayerContents) const;
virtual IntRect windowResizerRect() const override;
#if USE(TILED_BACKING_STORE)
virtual void setFixedVisibleContentRect(const IntRect&) override;
#endif
- WEBCORE_EXPORT virtual void setScrollPosition(const IntPoint&) override;
- WEBCORE_EXPORT void scrollPositionChangedViaPlatformWidget(const IntPoint& oldPosition, const IntPoint& newPosition);
+ virtual void setScrollPosition(const IntPoint&) override;
+ void scrollPositionChangedViaPlatformWidget(const IntPoint& oldPosition, const IntPoint& newPosition);
virtual void updateLayerPositionsAfterScrolling() override;
virtual void updateCompositingLayersAfterScrolling() override;
virtual bool requestScrollPositionUpdate(const IntPoint&) override;
virtual bool isRubberBandInProgress() const override;
- WEBCORE_EXPORT virtual IntPoint minimumScrollPosition() const override;
- WEBCORE_EXPORT virtual IntPoint maximumScrollPosition() const override;
+ virtual IntPoint minimumScrollPosition() const override;
+ virtual IntPoint maximumScrollPosition() const override;
void delayedScrollEventTimerFired(Timer<FrameView>&);
// This is different than visibleContentRect() in that it ignores negative (or overly positive)
LayoutRect viewportConstrainedVisibleContentRect() const;
String mediaType() const;
- WEBCORE_EXPORT void setMediaType(const String&);
+ void setMediaType(const String&);
void adjustMediaTypeForPrinting(bool printing);
void setCannotBlitToWindow();
// These layers are positioned differently when there is a topContentInset, a header, or a footer. These value need to be computed
// on both the main thread and the scrolling thread.
static float yPositionForInsetClipLayer(const FloatPoint& scrollPosition, float topContentInset);
- WEBCORE_EXPORT static float yPositionForRootContentLayer(const FloatPoint& scrollPosition, float topContentInset, float headerHeight);
+ static float yPositionForRootContentLayer(const FloatPoint& scrollPosition, float topContentInset, float headerHeight);
static float yPositionForHeaderLayer(const FloatPoint& scrollPosition, float topContentInset);
static float yPositionForFooterLayer(const FloatPoint& scrollPosition, float topContentInset, float totalContentsHeight, float footerHeight);
#if PLATFORM(IOS)
- WEBCORE_EXPORT LayoutRect viewportConstrainedObjectsRect() const;
+ LayoutRect viewportConstrainedObjectsRect() const;
// Static function can be called from another thread.
- WEBCORE_EXPORT static LayoutRect rectForViewportConstrainedObjects(const LayoutRect& visibleContentRect, const LayoutSize& totalContentsSize, float frameScaleFactor, bool fixedElementsLayoutRelativeToFrame, ScrollBehaviorForFixedElements);
+ static LayoutRect rectForViewportConstrainedObjects(const LayoutRect& visibleContentRect, const LayoutSize& totalContentsSize, float frameScaleFactor, bool fixedElementsLayoutRelativeToFrame, ScrollBehaviorForFixedElements);
#endif
bool fixedElementsLayoutRelativeToFrame() const;
- WEBCORE_EXPORT void disableLayerFlushThrottlingTemporarilyForInteraction();
+ void disableLayerFlushThrottlingTemporarilyForInteraction();
bool speculativeTilingEnabled() const { return m_speculativeTilingEnabled; }
void loadProgressingStatusChanged();
#if ENABLE(DASHBOARD_SUPPORT)
void updateAnnotatedRegions();
#endif
- WEBCORE_EXPORT void updateControlTints();
+ void updateControlTints();
void restoreScrollbar();
void postLayoutTimerFired(Timer<FrameView>&);
- WEBCORE_EXPORT bool wasScrolledByUser() const;
- WEBCORE_EXPORT void setWasScrolledByUser(bool);
+ bool wasScrolledByUser() const;
+ void setWasScrolledByUser(bool);
bool safeToPropagateScrollToParent() const { return m_safeToPropagateScrollToParent; }
void setSafeToPropagateScrollToParent(bool isSafe) { m_safeToPropagateScrollToParent = isSafe; }
void addEmbeddedObjectToUpdate(RenderEmbeddedObject&);
void removeEmbeddedObjectToUpdate(RenderEmbeddedObject&);
- WEBCORE_EXPORT virtual void paintContents(GraphicsContext*, const IntRect& dirtyRect) override;
+ virtual void paintContents(GraphicsContext*, const IntRect& dirtyRect) override;
struct PaintingState {
PaintBehavior paintBehavior;
void willPaintContents(GraphicsContext*, const IntRect& dirtyRect, PaintingState&);
void didPaintContents(GraphicsContext*, const IntRect& dirtyRect, PaintingState&);
- WEBCORE_EXPORT void setPaintBehavior(PaintBehavior);
- WEBCORE_EXPORT PaintBehavior paintBehavior() const;
+ void setPaintBehavior(PaintBehavior);
+ PaintBehavior paintBehavior() const;
bool isPainting() const;
bool hasEverPainted() const { return m_lastPaintTime; }
void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTime; }
- WEBCORE_EXPORT void setNodeToDraw(Node*);
+ void setNodeToDraw(Node*);
enum SelectionInSnapshot { IncludeSelection, ExcludeSelection };
enum CoordinateSpaceForSnapshot { DocumentCoordinates, ViewCoordinates };
- WEBCORE_EXPORT void paintContentsForSnapshot(GraphicsContext*, const IntRect& imageRect, SelectionInSnapshot shouldPaintSelection, CoordinateSpaceForSnapshot);
+ void paintContentsForSnapshot(GraphicsContext*, const IntRect& imageRect, SelectionInSnapshot shouldPaintSelection, CoordinateSpaceForSnapshot);
virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect) override;
virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect) override;
virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) override;
- WEBCORE_EXPORT Color documentBackgroundColor() const;
+ Color documentBackgroundColor() const;
bool isInChildFrameWithFrameFlattening() const;
static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } // returns 0 if not painting
- WEBCORE_EXPORT void updateLayoutAndStyleIfNeededRecursive();
+ void updateLayoutAndStyleIfNeededRecursive();
void incrementVisuallyNonEmptyCharacterCount(unsigned);
void incrementVisuallyNonEmptyPixelCount(const IntSize&);
void updateIsVisuallyNonEmpty();
bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
- WEBCORE_EXPORT void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize);
- WEBCORE_EXPORT void setAutoSizeFixedMinimumHeight(int);
+ void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize);
+ void setAutoSizeFixedMinimumHeight(int fixedMinimumHeight);
IntSize autoSizingIntrinsicContentSize() const { return m_autoSizeContentSize; }
- WEBCORE_EXPORT void forceLayout(bool allowSubtree = false);
- WEBCORE_EXPORT void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& originalPageSize, float maximumShrinkFactor, AdjustViewSizeOrNot);
+ void forceLayout(bool allowSubtree = false);
+ void forceLayoutForPagination(const FloatSize& pageSize, const FloatSize& originalPageSize, float maximumShrinkFactor, AdjustViewSizeOrNot);
// FIXME: This method is retained because of embedded WebViews in AppKit. When a WebView is embedded inside
// some enclosing view with auto-pagination, no call happens to resize the view. The new pagination model
// but that doesn't solve the general problem of how other AppKit views could opt in to the better model.
//
// NO OTHER PLATFORM BESIDES MAC SHOULD USE THIS METHOD.
- WEBCORE_EXPORT void adjustPageHeightDeprecated(float* newBottom, float oldTop, float oldBottom, float bottomLimit);
+ void adjustPageHeightDeprecated(float* newBottom, float oldTop, float oldBottom, float bottomLimit);
bool scrollToFragment(const URL&);
bool scrollToAnchor(const String&);
void maintainScrollPositionAtAnchor(Node*);
- WEBCORE_EXPORT void scrollElementToRect(Element*, const IntRect&);
+ void scrollElementToRect(Element*, const IntRect&);
// Methods to convert points and rects between the coordinate space of the renderer, and this view.
- WEBCORE_EXPORT IntRect convertFromRendererToContainingView(const RenderElement*, const IntRect&) const;
- WEBCORE_EXPORT IntRect convertFromContainingViewToRenderer(const RenderElement*, const IntRect&) const;
- WEBCORE_EXPORT IntPoint convertFromRendererToContainingView(const RenderElement*, const IntPoint&) const;
- WEBCORE_EXPORT IntPoint convertFromContainingViewToRenderer(const RenderElement*, const IntPoint&) const;
+ IntRect convertFromRendererToContainingView(const RenderElement*, const IntRect&) const;
+ IntRect convertFromContainingViewToRenderer(const RenderElement*, const IntRect&) const;
+ IntPoint convertFromRendererToContainingView(const RenderElement*, const IntPoint&) const;
+ IntPoint convertFromContainingViewToRenderer(const RenderElement*, const IntPoint&) const;
bool isFrameViewScrollCorner(RenderScrollbarPart* scrollCorner) const { return m_scrollCorner == scrollCorner; }
RenderBox* embeddedContentBox() const;
- WEBCORE_EXPORT void setTracksRepaints(bool);
+ void setTracksRepaints(bool);
bool isTrackingRepaints() const { return m_isTrackingRepaints; }
- WEBCORE_EXPORT void resetTrackedRepaints();
+ void resetTrackedRepaints();
const Vector<FloatRect>& trackedRepaintRects() const { return m_trackedRepaintRects; }
String trackedRepaintRectsAsText() const;
typedef HashSet<ScrollableArea*> ScrollableAreaSet;
// Returns whether the scrollable area has just been newly added.
- WEBCORE_EXPORT bool addScrollableArea(ScrollableArea*);
+ bool addScrollableArea(ScrollableArea*);
// Returns whether the scrollable area has just been removed.
- WEBCORE_EXPORT bool removeScrollableArea(ScrollableArea*);
+ bool removeScrollableArea(ScrollableArea*);
bool containsScrollableArea(ScrollableArea*) const;
const ScrollableAreaSet* scrollableAreas() const { return m_scrollableAreas.get(); }
// we need this function in order to do the scroll ourselves.
bool wheelEvent(const PlatformWheelEvent&);
- WEBCORE_EXPORT void setScrollingPerformanceLoggingEnabled(bool);
+ void setScrollingPerformanceLoggingEnabled(bool);
// Page and FrameView both store a Pagination value. Page::pagination() is set only by API,
// and FrameView::pagination() is set only by CSS. Page::pagination() will affect all
virtual bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting() const override;
#if ENABLE(RUBBER_BANDING)
- WEBCORE_EXPORT GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const;
- WEBCORE_EXPORT GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const;
+ GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const;
+ GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const;
#endif
virtual int headerHeight() const override { return m_headerHeight; }
- WEBCORE_EXPORT void setHeaderHeight(int);
+ void setHeaderHeight(int);
virtual int footerHeight() const override { return m_footerHeight; }
- WEBCORE_EXPORT void setFooterHeight(int);
+ void setFooterHeight(int);
- WEBCORE_EXPORT virtual float topContentInset(TopContentInsetType = TopContentInsetType::WebCoreContentInset) const override;
+ virtual float topContentInset(TopContentInsetType = TopContentInsetType::WebCoreContentInset) const override;
void topContentInsetDidChange(float newTopContentInset);
- WEBCORE_EXPORT virtual void willStartLiveResize() override;
- WEBCORE_EXPORT virtual void willEndLiveResize() override;
+ virtual void willStartLiveResize() override;
+ virtual void willEndLiveResize() override;
void addPaintPendingMilestones(LayoutMilestones);
void firePaintRelatedMilestonesIfNeeded();
LayoutMilestones milestonesPendingPaint() const { return m_milestonesPendingPaint; }
bool visualUpdatesAllowedByClient() const { return m_visualUpdatesAllowedByClient; }
- WEBCORE_EXPORT void setVisualUpdatesAllowedByClient(bool);
+ void setVisualUpdatesAllowedByClient(bool);
- WEBCORE_EXPORT void setScrollPinningBehavior(ScrollPinningBehavior);
+ void setScrollPinningBehavior(ScrollPinningBehavior);
ScrollBehaviorForFixedElements scrollBehaviorForFixedElements() const;
// of the view is actually exposed on screen (taking into account
// clipping by other UI elements), whereas visibleContentRect is
// internal to WebCore and doesn't respect those things.
- WEBCORE_EXPORT void setExposedRect(FloatRect);
+ void setExposedRect(FloatRect);
FloatRect exposedRect() const { return m_exposedRect; }
#if ENABLE(CSS_SCROLL_SNAP)
void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow);
- WEBCORE_EXPORT void paintControlTints();
+ void paintControlTints();
void forceLayoutParentViewIfNeeded();
void performPostLayoutTasks();
void autoSizeIfEnabled();
void updateLayerFlushThrottling();
- WEBCORE_EXPORT void adjustTiledBackingCoverage();
+ void adjustTiledBackingCoverage();
virtual void repaintContentRectangle(const IntRect&) override;
virtual void contentsResized() override;
friend class PageThrottler;
public:
- WEBCORE_EXPORT static void updateStyleForAllPagesAfterGlobalChangeInEnvironment();
- WEBCORE_EXPORT static void clearPreviousItemFromAllPages(HistoryItem*);
+ static void updateStyleForAllPagesAfterGlobalChangeInEnvironment();
+ static void clearPreviousItemFromAllPages(HistoryItem*);
// It is up to the platform to ensure that non-null clients are provided where required.
// FIXME: Rename this to PageConfiguration and move it to its own class.
struct PageClients {
WTF_MAKE_NONCOPYABLE(PageClients); WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT PageClients();
- WEBCORE_EXPORT ~PageClients();
+ PageClients();
+ ~PageClients();
AlternativeTextClient* alternativeTextClient;
ChromeClient* chromeClient;
RefPtr<VisitedLinkStore> visitedLinkStore;
};
- WEBCORE_EXPORT explicit Page(PageClients&);
- WEBCORE_EXPORT ~Page();
+ explicit Page(PageClients&);
+ ~Page();
- WEBCORE_EXPORT uint64_t renderTreeSize() const;
+ uint64_t renderTreeSize() const;
void setNeedsRecalcStyleInAllFrames();
RenderTheme& theme() const { return *m_theme; }
- WEBCORE_EXPORT ViewportArguments viewportArguments() const;
+ ViewportArguments viewportArguments() const;
static void refreshPlugins(bool reload);
- WEBCORE_EXPORT PluginData& pluginData() const;
+ PluginData& pluginData() const;
- WEBCORE_EXPORT void setCanStartMedia(bool);
+ void setCanStartMedia(bool);
bool canStartMedia() const { return m_canStartMedia; }
EditorClient* editorClient() const { return m_editorClient; }
bool openedByDOM() const;
void setOpenedByDOM();
- WEBCORE_EXPORT void goToItem(HistoryItem*, FrameLoadType);
+ void goToItem(HistoryItem*, FrameLoadType);
- WEBCORE_EXPORT void setGroupName(const String&);
- WEBCORE_EXPORT const String& groupName() const;
+ void setGroupName(const String&);
+ const String& groupName() const;
PageGroup& group();
PageGroup* groupPtr() { return m_group; } // can return 0
int subframeCount() const { checkSubframeCountConsistency(); return m_subframeCount; }
#if ENABLE(REMOTE_INSPECTOR)
- WEBCORE_EXPORT bool remoteInspectionAllowed() const;
- WEBCORE_EXPORT void setRemoteInspectionAllowed(bool);
+ bool remoteInspectionAllowed() const;
+ void setRemoteInspectionAllowed(bool);
void remoteInspectorInformationDidChange() const;
#endif
ScrollingCoordinator* scrollingCoordinator();
- WEBCORE_EXPORT String scrollingStateTreeAsText();
- WEBCORE_EXPORT String synchronousScrollingReasonsAsText();
- WEBCORE_EXPORT PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*);
+ String scrollingStateTreeAsText();
+ String synchronousScrollingReasonsAsText();
+ PassRefPtr<ClientRectList> nonFastScrollableRects(const Frame*);
Settings& settings() const { return *m_settings; }
ProgressTracker& progress() const { return *m_progress; }
static ViewMode stringToViewMode(const String&);
ViewMode viewMode() const { return m_viewMode; }
- WEBCORE_EXPORT void setViewMode(ViewMode);
+ void setViewMode(ViewMode);
#endif // ENABLE(VIEW_MODE_CSS_MEDIA)
void setTabKeyCyclesThroughElements(bool b) { m_tabKeyCyclesThroughElements = b; }
bool tabKeyCyclesThroughElements() const { return m_tabKeyCyclesThroughElements; }
- WEBCORE_EXPORT bool findString(const String&, FindOptions);
+ bool findString(const String&, FindOptions);
- WEBCORE_EXPORT PassRefPtr<Range> rangeOfString(const String&, Range*, FindOptions);
+ PassRefPtr<Range> rangeOfString(const String&, Range*, FindOptions);
- WEBCORE_EXPORT unsigned countFindMatches(const String&, FindOptions, unsigned maxMatchCount);
- WEBCORE_EXPORT unsigned markAllMatchesForText(const String&, FindOptions, bool shouldHighlight, unsigned maxMatchCount);
+ unsigned countFindMatches(const String&, FindOptions, unsigned maxMatchCount);
+ unsigned markAllMatchesForText(const String&, FindOptions, bool shouldHighlight, unsigned maxMatchCount);
- WEBCORE_EXPORT void unmarkAllTextMatches();
+ void unmarkAllTextMatches();
// find all the Ranges for the matching text.
// Upon return, indexForSelection will be one of the following:
// the index of the first range after the user selection
// NoMatchAfterUserSelection if there is no matching text after the user selection.
enum { NoMatchAfterUserSelection = -1 };
- WEBCORE_EXPORT void findStringMatchingRanges(const String&, FindOptions, int maxCount, Vector<RefPtr<Range>>&, int& indexForSelection);
+ void findStringMatchingRanges(const String&, FindOptions, int maxCount, Vector<RefPtr<Range>>&, int& indexForSelection);
#if PLATFORM(COCOA)
- WEBCORE_EXPORT void addSchedulePair(PassRefPtr<SchedulePair>);
- WEBCORE_EXPORT void removeSchedulePair(PassRefPtr<SchedulePair>);
+ void addSchedulePair(PassRefPtr<SchedulePair>);
+ void removeSchedulePair(PassRefPtr<SchedulePair>);
SchedulePairHashSet* scheduledRunLoopPairs() { return m_scheduledRunLoopPairs.get(); }
std::unique_ptr<SchedulePairHashSet> m_scheduledRunLoopPairs;
#endif
- WEBCORE_EXPORT const VisibleSelection& selection() const;
+ const VisibleSelection& selection() const;
- WEBCORE_EXPORT void setDefersLoading(bool);
+ void setDefersLoading(bool);
bool defersLoading() const { return m_defersLoading; }
- WEBCORE_EXPORT void clearUndoRedoOperations();
+ void clearUndoRedoOperations();
- WEBCORE_EXPORT bool inLowQualityImageInterpolationMode() const;
- WEBCORE_EXPORT void setInLowQualityImageInterpolationMode(bool = true);
+ bool inLowQualityImageInterpolationMode() const;
+ void setInLowQualityImageInterpolationMode(bool = true);
float mediaVolume() const { return m_mediaVolume; }
- WEBCORE_EXPORT void setMediaVolume(float);
+ void setMediaVolume(float);
- WEBCORE_EXPORT void setPageScaleFactor(float scale, const IntPoint& origin, bool inStableState = true);
+ void setPageScaleFactor(float scale, const IntPoint& origin, bool inStableState = true);
float pageScaleFactor() const { return m_pageScaleFactor; }
- WEBCORE_EXPORT void setZoomedOutPageScaleFactor(float);
+ void setZoomedOutPageScaleFactor(float);
float zoomedOutPageScaleFactor() const { return m_zoomedOutPageScaleFactor; }
float deviceScaleFactor() const { return m_deviceScaleFactor; }
- WEBCORE_EXPORT void setDeviceScaleFactor(float);
+ void setDeviceScaleFactor(float);
float topContentInset() const { return m_topContentInset; }
- WEBCORE_EXPORT void setTopContentInset(float);
+ void setTopContentInset(float);
#if ENABLE(IOS_TEXT_AUTOSIZING)
float textAutosizingWidth() const { return m_textAutosizingWidth; }
#endif
bool shouldSuppressScrollbarAnimations() const { return m_suppressScrollbarAnimations; }
- WEBCORE_EXPORT void setShouldSuppressScrollbarAnimations(bool suppressAnimations);
+ void setShouldSuppressScrollbarAnimations(bool suppressAnimations);
void lockAllOverlayScrollbarsToHidden(bool lockOverlayScrollbars);
- WEBCORE_EXPORT void setVerticalScrollElasticity(ScrollElasticity);
+ void setVerticalScrollElasticity(ScrollElasticity);
ScrollElasticity verticalScrollElasticity() const { return static_cast<ScrollElasticity>(m_verticalScrollElasticity); }
- WEBCORE_EXPORT void setHorizontalScrollElasticity(ScrollElasticity);
+ void setHorizontalScrollElasticity(ScrollElasticity);
ScrollElasticity horizontalScrollElasticity() const { return static_cast<ScrollElasticity>(m_horizontalScrollElasticity); }
// Page and FrameView both store a Pagination value. Page::pagination() is set only by API,
// FrameViews in the page cache, but FrameView::pagination() only affects the current
// FrameView.
const Pagination& pagination() const { return m_pagination; }
- WEBCORE_EXPORT void setPagination(const Pagination&);
+ void setPagination(const Pagination&);
- WEBCORE_EXPORT unsigned pageCount() const;
+ unsigned pageCount() const;
// Notifications when the Page starts and stops being presented via a native window.
- WEBCORE_EXPORT void setViewState(ViewState::Flags);
- WEBCORE_EXPORT void setIsVisible(bool);
- WEBCORE_EXPORT void setIsPrerender();
+ void setViewState(ViewState::Flags);
+ void setIsVisible(bool);
+ void setIsPrerender();
bool isVisible() const { return m_viewState & ViewState::IsVisible; }
// Notification that this Page was moved into or out of a native window.
- WEBCORE_EXPORT void setIsInWindow(bool);
+ void setIsInWindow(bool);
bool isInWindow() const { return m_viewState & ViewState::IsInWindow; }
void setIsClosing() { m_isClosing = true; }
void addViewStateChangeObserver(ViewStateChangeObserver&);
void removeViewStateChangeObserver(ViewStateChangeObserver&);
- WEBCORE_EXPORT void suspendScriptedAnimations();
- WEBCORE_EXPORT void resumeScriptedAnimations();
+ void suspendScriptedAnimations();
+ void resumeScriptedAnimations();
bool scriptedAnimationsSuspended() const { return m_scriptedAnimationsSuspended; }
void userStyleSheetLocationChanged();
static void removeAllVisitedLinks();
- WEBCORE_EXPORT void invalidateStylesForAllLinks();
- WEBCORE_EXPORT void invalidateStylesForLink(LinkHash);
+ void invalidateStylesForAllLinks();
+ void invalidateStylesForLink(LinkHash);
StorageNamespace* sessionStorage(bool optionalCreate = true);
void setSessionStorage(PassRefPtr<StorageNamespace>);
bool hasCustomHTMLTokenizerTimeDelay() const;
double customHTMLTokenizerTimeDelay() const;
- WEBCORE_EXPORT void setMemoryCacheClientCallsEnabled(bool);
+ void setMemoryCacheClientCallsEnabled(bool);
bool areMemoryCacheClientCallsEnabled() const { return m_areMemoryCacheClientCallsEnabled; }
// Don't allow more than a certain number of frames in a page.
void setEditable(bool isEditable) { m_isEditable = isEditable; }
bool isEditable() { return m_isEditable; }
- WEBCORE_EXPORT PageVisibilityState visibilityState() const;
- WEBCORE_EXPORT void resumeAnimatingImages();
+ PageVisibilityState visibilityState() const;
+ void resumeAnimatingImages();
- WEBCORE_EXPORT void addLayoutMilestones(LayoutMilestones);
- WEBCORE_EXPORT void removeLayoutMilestones(LayoutMilestones);
+ void addLayoutMilestones(LayoutMilestones);
+ void removeLayoutMilestones(LayoutMilestones);
LayoutMilestones requestedLayoutMilestones() const { return m_requestedLayoutMilestones; }
#if ENABLE(RUBBER_BANDING)
- WEBCORE_EXPORT void addHeaderWithHeight(int);
- WEBCORE_EXPORT void addFooterWithHeight(int);
+ void addHeaderWithHeight(int);
+ void addFooterWithHeight(int);
#endif
int headerHeight() const { return m_headerHeight; }
int footerHeight() const { return m_footerHeight; }
- WEBCORE_EXPORT Color pageExtendedBackgroundColor() const;
+ Color pageExtendedBackgroundColor() const;
bool isCountingRelevantRepaintedObjects() const;
void startCountingRelevantRepaintedObjects();
void addRelevantRepaintedObject(RenderObject*, const LayoutRect& objectPaintRect);
void addRelevantUnpaintedObject(RenderObject*, const LayoutRect& objectPaintRect);
- WEBCORE_EXPORT void suspendActiveDOMObjectsAndAnimations();
- WEBCORE_EXPORT void resumeActiveDOMObjectsAndAnimations();
+ void suspendActiveDOMObjectsAndAnimations();
+ void resumeActiveDOMObjectsAndAnimations();
#ifndef NDEBUG
void setIsPainting(bool painting) { m_isPainting = painting; }
bool isPainting() const { return m_isPainting; }
AlternativeTextClient* alternativeTextClient() const { return m_alternativeTextClient; }
bool hasSeenPlugin(const String& serviceType) const;
- WEBCORE_EXPORT bool hasSeenAnyPlugin() const;
+ bool hasSeenAnyPlugin() const;
void sawPlugin(const String& serviceType);
void resetSeenPlugins();
void resetSeenMediaEngines();
PageThrottler* pageThrottler() { return m_pageThrottler.get(); }
- WEBCORE_EXPORT void createPageThrottler();
+ void createPageThrottler();
PageConsole& console() { return *m_console; }
VisitedLinkStore& visitedLinkStore();
- WEBCORE_EXPORT SessionID sessionID() const;
- WEBCORE_EXPORT void setSessionID(SessionID);
- WEBCORE_EXPORT void enableLegacyPrivateBrowsing(bool privateBrowsingEnabled);
+ SessionID sessionID() const;
+ void setSessionID(SessionID);
+ void enableLegacyPrivateBrowsing(bool privateBrowsingEnabled);
bool usesEphemeralSession() const { return m_sessionID.isEphemeral(); }
private:
- WEBCORE_EXPORT void initGroup();
+ void initGroup();
void setIsInWindowInternal(bool);
void setIsVisibleInternal(bool);
#if ENABLE(POINTER_LOCK)
const std::unique_ptr<PointerLockController> m_pointerLockController;
#endif
- WEBCORE_EXPORT RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
+ RefPtr<ScrollingCoordinator> m_scrollingCoordinator;
const RefPtr<Settings> m_settings;
const std::unique_ptr<ProgressTracker> m_progress;
explicit PageConsole(Page&);
virtual ~PageConsole();
- WEBCORE_EXPORT static bool shouldPrintExceptions();
- WEBCORE_EXPORT static void setShouldPrintExceptions(bool);
+ static bool shouldPrintExceptions();
+ static void setShouldPrintExceptions(bool);
static void mute();
static void unmute();
explicit PageGroup(Page&);
~PageGroup();
- WEBCORE_EXPORT static PageGroup* pageGroup(const String& groupName);
+ static PageGroup* pageGroup(const String& groupName);
- WEBCORE_EXPORT static void closeLocalStorage();
+ static void closeLocalStorage();
static void clearLocalStorageForAllOrigins();
static void clearLocalStorageForOrigin(SecurityOrigin*);
- WEBCORE_EXPORT static void closeIdleLocalStorageDatabases();
+ static void closeIdleLocalStorageDatabases();
// DumpRenderTree helper that triggers a StorageArea sync.
- WEBCORE_EXPORT static void syncLocalStorage();
+ static void syncLocalStorage();
const HashSet<Page*>& pages() const { return m_pages; }
VisitedLinkStore& visitedLinkStore();
- WEBCORE_EXPORT bool isLinkVisited(LinkHash);
+ bool isLinkVisited(LinkHash);
void addVisitedLink(const URL&);
void addVisitedLink(const UChar*, size_t);
- WEBCORE_EXPORT void addVisitedLinkHash(LinkHash);
- WEBCORE_EXPORT void removeVisitedLink(const URL&);
+ void addVisitedLinkHash(LinkHash);
+ void removeVisitedLink(const URL&);
void removeVisitedLinks();
- WEBCORE_EXPORT static void setShouldTrackVisitedLinks(bool);
- WEBCORE_EXPORT static void removeAllVisitedLinks();
+ static void setShouldTrackVisitedLinks(bool);
+ static void removeAllVisitedLinks();
const String& name() { return m_name; }
unsigned identifier() { return m_identifier; }
StorageNamespace* transientLocalStorage(SecurityOrigin* topOrigin);
- WEBCORE_EXPORT void addUserScriptToWorld(DOMWrapperWorld&, const String& source, const URL&, const Vector<String>& whitelist, const Vector<String>& blacklist, UserScriptInjectionTime, UserContentInjectedFrames);
- WEBCORE_EXPORT void addUserStyleSheetToWorld(DOMWrapperWorld&, const String& source, const URL&, const Vector<String>& whitelist, const Vector<String>& blacklist, UserContentInjectedFrames, UserStyleLevel = UserStyleUserLevel, UserStyleInjectionTime = InjectInExistingDocuments);
- WEBCORE_EXPORT void removeUserStyleSheetFromWorld(DOMWrapperWorld&, const URL&);
- WEBCORE_EXPORT void removeUserScriptFromWorld(DOMWrapperWorld&, const URL&);
- WEBCORE_EXPORT void removeUserScriptsFromWorld(DOMWrapperWorld&);
- WEBCORE_EXPORT void removeUserStyleSheetsFromWorld(DOMWrapperWorld&);
- WEBCORE_EXPORT void removeAllUserContent();
+ void addUserScriptToWorld(DOMWrapperWorld&, const String& source, const URL&, const Vector<String>& whitelist, const Vector<String>& blacklist, UserScriptInjectionTime, UserContentInjectedFrames);
+ void addUserStyleSheetToWorld(DOMWrapperWorld&, const String& source, const URL&, const Vector<String>& whitelist, const Vector<String>& blacklist, UserContentInjectedFrames, UserStyleLevel = UserStyleUserLevel, UserStyleInjectionTime = InjectInExistingDocuments);
+ void removeUserStyleSheetFromWorld(DOMWrapperWorld&, const URL&);
+ void removeUserScriptFromWorld(DOMWrapperWorld&, const URL&);
+ void removeUserScriptsFromWorld(DOMWrapperWorld&);
+ void removeUserStyleSheetsFromWorld(DOMWrapperWorld&);
+ void removeAllUserContent();
GroupSettings& groupSettings() const { return *m_groupSettings; }
#if ENABLE(VIDEO_TRACK)
- WEBCORE_EXPORT void captionPreferencesChanged();
+ void captionPreferencesChanged();
CaptionUserPreferences* captionPreferences();
#endif
private:
- WEBCORE_EXPORT void addVisitedLink(LinkHash);
+ void addVisitedLink(LinkHash);
String m_name;
HashSet<Page*> m_pages;
void updateHysteresis();
friend class HysteresisActivity<PageThrottler>;
- WEBCORE_EXPORT void started();
+ void started();
void stopped();
Page& m_page;
class PrintContext {
public:
- WEBCORE_EXPORT explicit PrintContext(Frame*);
- WEBCORE_EXPORT ~PrintContext();
+ explicit PrintContext(Frame*);
+ ~PrintContext();
Frame* frame() const { return m_frame; }
// FIXME: This means that CSS page breaks won't be on page boundary if the size is different than what was passed to begin(). That's probably not always desirable.
// FIXME: Header and footer height should be applied before layout, not after.
// FIXME: The printRect argument is only used to determine page aspect ratio, it would be better to pass a FloatSize with page dimensions instead.
- WEBCORE_EXPORT void computePageRects(const FloatRect& printRect, float headerHeight, float footerHeight, float userScaleFactor, float& outPageHeight, bool allowHorizontalTiling = false);
+ void computePageRects(const FloatRect& printRect, float headerHeight, float footerHeight, float userScaleFactor, float& outPageHeight, bool allowHorizontalTiling = false);
// Deprecated. Page size computation is already in this class, clients shouldn't be copying it.
- WEBCORE_EXPORT void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling);
+ void computePageRectsWithPageSize(const FloatSize& pageSizeInPixels, bool allowHorizontalTiling);
// These are only valid after page rects are computed.
size_t pageCount() const { return m_pageRects.size(); }
const IntRect& pageRect(size_t pageNumber) const { return m_pageRects[pageNumber]; }
const Vector<IntRect>& pageRects() const { return m_pageRects; }
- WEBCORE_EXPORT float computeAutomaticScaleFactor(const FloatSize& availablePaperSize);
+ float computeAutomaticScaleFactor(const FloatSize& availablePaperSize);
// Enter print mode, updating layout for new page size.
// This function can be called multiple times to apply new print options without going back to screen mode.
- WEBCORE_EXPORT void begin(float width, float height = 0);
+ void begin(float width, float height = 0);
// FIXME: eliminate width argument.
- WEBCORE_EXPORT void spoolPage(GraphicsContext& ctx, int pageNumber, float width);
+ void spoolPage(GraphicsContext& ctx, int pageNumber, float width);
- WEBCORE_EXPORT void spoolRect(GraphicsContext& ctx, const IntRect&);
+ void spoolRect(GraphicsContext& ctx, const IntRect&);
// Return to screen mode.
- WEBCORE_EXPORT void end();
+ void end();
// Used by layout tests.
- WEBCORE_EXPORT static int pageNumberForElement(Element*, const FloatSize& pageSizeInPixels); // Returns -1 if page isn't found.
- WEBCORE_EXPORT static String pageProperty(Frame*, const char* propertyName, int pageNumber);
- WEBCORE_EXPORT static bool isPageBoxVisible(Frame*, int pageNumber);
- WEBCORE_EXPORT static String pageSizeAndMarginsInPixels(Frame*, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft);
- WEBCORE_EXPORT static int numberOfPages(Frame*, const FloatSize& pageSizeInPixels);
+ static int pageNumberForElement(Element*, const FloatSize& pageSizeInPixels); // Returns -1 if page isn't found.
+ static String pageProperty(Frame* frame, const char* propertyName, int pageNumber);
+ static bool isPageBoxVisible(Frame* frame, int pageNumber);
+ static String pageSizeAndMarginsInPixels(Frame* frame, int pageNumber, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft);
+ static int numberOfPages(Frame*, const FloatSize& pageSizeInPixels);
// Draw all pages into a graphics context with lines which mean page boundaries.
// The height of the graphics context should be
// (pageSizeInPixels.height() + 1) * number-of-pages - 1
- WEBCORE_EXPORT static void spoolAllPagesWithBoundaries(Frame*, GraphicsContext&, const FloatSize& pageSizeInPixels);
+ static void spoolAllPagesWithBoundaries(Frame*, GraphicsContext&, const FloatSize& pageSizeInPixels);
protected:
Frame* m_frame;
, m_layerPositionAtLastLayout(other.m_layerPositionAtLastLayout)
{ }
- WEBCORE_EXPORT FloatPoint layerPositionForViewportRect(const FloatRect& viewportRect) const;
+ FloatPoint layerPositionForViewportRect(const FloatRect& viewportRect) const;
const FloatRect& viewportRectAtLastLayout() const { return m_viewportRectAtLastLayout; }
void setViewportRectAtLastLayout(const FloatRect& rect) { m_viewportRectAtLastLayout = rect; }
bool representsPlatformLayerID() const { return m_representation == PlatformLayerIDRepresentation; }
private:
- WEBCORE_EXPORT void retainPlatformLayer(PlatformLayer*);
- WEBCORE_EXPORT void releasePlatformLayer(PlatformLayer*);
+ void retainPlatformLayer(PlatformLayer*);
+ void releasePlatformLayer(PlatformLayer*);
union {
GraphicsLayer* m_graphicsLayer;
class FileChooser : public RefCounted<FileChooser> {
public:
static PassRefPtr<FileChooser> create(FileChooserClient*, const FileChooserSettings&);
- WEBCORE_EXPORT ~FileChooser();
+ ~FileChooser();
void invalidate();
- WEBCORE_EXPORT void chooseFile(const String& path);
- WEBCORE_EXPORT void chooseFiles(const Vector<String>& paths);
+ void chooseFile(const String& path);
+ void chooseFiles(const Vector<String>& paths);
#if PLATFORM(IOS)
// FIXME: This function is almost identical to FileChooser::chooseFiles(). We should merge this
// function with FileChooser::chooseFiles() and hence remove the PLATFORM(IOS)-guard.
- WEBCORE_EXPORT void chooseMediaFiles(const Vector<String>& paths, const String& displayString, Icon*);
+ void chooseMediaFiles(const Vector<String>& paths, const String& displayString, Icon*);
#endif
// FIXME: We should probably just pass file paths that could be virtual paths with proper display names rather than passing structs.
public:
virtual ~GamepadProvider() { }
- WEBCORE_EXPORT static GamepadProvider& shared();
- WEBCORE_EXPORT static void setSharedProvider(GamepadProvider&);
+ static GamepadProvider& shared();
+ static void setSharedProvider(GamepadProvider&);
virtual void startMonitoringGamepads(GamepadProviderClient*);
virtual void stopMonitoringGamepads(GamepadProviderClient*);
Length(float value, LengthType, bool hasQuirk = false);
Length(double value, LengthType, bool hasQuirk = false);
- WEBCORE_EXPORT explicit Length(PassRef<CalculationValue>);
+ explicit Length(PassRef<CalculationValue>);
Length(const Length&);
Length(Length&&);
bool isCalculatedEqual(const Length&) const;
Length blendMixedTypes(const Length& from, double progress) const;
- WEBCORE_EXPORT void ref() const;
- WEBCORE_EXPORT void deref() const;
+ void ref() const;
+ void deref() const;
union {
int m_intValue;
class MIMETypeRegistry {
public:
- WEBCORE_EXPORT static String getMIMETypeForExtension(const String& extension);
+ static String getMIMETypeForExtension(const String& extension);
static Vector<String> getExtensionsForMIMEType(const String& type);
- WEBCORE_EXPORT static String getPreferredExtensionForMIMEType(const String& type);
+ static String getPreferredExtensionForMIMEType(const String& type);
static String getMediaMIMETypeForExtension(const String& extension);
static Vector<String> getMediaMIMETypesForExtension(const String& extension);
// Check to see if a mime type is suitable for being loaded inline as an
// image (e.g., <img> tags).
- WEBCORE_EXPORT static bool isSupportedImageMIMEType(const String& mimeType);
+ static bool isSupportedImageMIMEType(const String& mimeType);
// Check to see if a mime type is suitable for being loaded as an image
// document in a frame.
- WEBCORE_EXPORT static bool isSupportedImageResourceMIMEType(const String& mimeType);
+ static bool isSupportedImageResourceMIMEType(const String& mimeType);
// Check to see if a mime type is suitable for being encoded.
static bool isSupportedImageMIMETypeForEncoding(const String& mimeType);
// Check to see if a non-image mime type is suitable for being loaded as a
// document in a frame. Includes supported JavaScript MIME types.
- WEBCORE_EXPORT static bool isSupportedNonImageMIMEType(const String& mimeType);
+ static bool isSupportedNonImageMIMEType(const String& mimeType);
// Check to see if a mime type is suitable for being loaded using <video> and <audio>
- WEBCORE_EXPORT static bool isSupportedMediaMIMEType(const String& mimeType);
+ static bool isSupportedMediaMIMEType(const String& mimeType);
// Check to see if the mime type is not suitable for being loaded as a text
// document in a frame. Only valid for mime types begining with "text/".
static bool isUnsupportedTextMIMEType(const String& mimeType);
// Check to see if a mime type is a valid Java applet mime type
- WEBCORE_EXPORT static bool isJavaAppletMIMEType(const String& mimeType);
+ static bool isJavaAppletMIMEType(const String& mimeType);
// Check to see if a mime type is a plugin implemented by the
// browser (e.g. a Qt Plugin).
static bool isApplicationPluginMIMEType(const String& mimeType);
// Check to see if a mime type is one of the common PDF/PS types.
- WEBCORE_EXPORT static bool isPDFOrPostScriptMIMEType(const String& mimeType);
+ static bool isPDFOrPostScriptMIMEType(const String& mimeType);
static bool isPDFMIMEType(const String& mimeType);
// Check to see if a mime type is suitable for being shown inside a page.
// Returns true if any of isSupportedImageMIMEType(), isSupportedNonImageMIMEType(), isSupportedMediaMIMEType() returns true
// or if given mime type begins with "text/" and isUnsupportedTextMIMEType() returns false.
- WEBCORE_EXPORT static bool canShowMIMEType(const String& mimeType);
+ static bool canShowMIMEType(const String& mimeType);
- WEBCORE_EXPORT static HashSet<String>& getSupportedImageMIMETypes();
+ static HashSet<String>& getSupportedImageMIMETypes();
static HashSet<String>& getSupportedImageResourceMIMETypes();
static HashSet<String>& getSupportedImageMIMETypesForEncoding();
- WEBCORE_EXPORT static HashSet<String>& getSupportedNonImageMIMETypes();
+ static HashSet<String>& getSupportedNonImageMIMETypes();
static HashSet<String>& getSupportedMediaMIMETypes();
- WEBCORE_EXPORT static HashSet<String>& getPDFMIMETypes();
+ static HashSet<String>& getPDFMIMETypes();
static HashSet<String>& getPDFAndPostScriptMIMETypes();
- WEBCORE_EXPORT static HashSet<String>& getUnsupportedTextMIMETypes();
+ static HashSet<String>& getUnsupportedTextMIMETypes();
static String getNormalizedMIMEType(const String&);
};
public:
friend MemoryPressureHandler& memoryPressureHandler();
- WEBCORE_EXPORT void install();
+ void install();
void setLowMemoryHandler(LowMemoryHandler handler)
{
#if PLATFORM(IOS)
// FIXME: Can we share more of this with OpenSource?
- WEBCORE_EXPORT void installMemoryReleaseBlock(void (^releaseMemoryBlock)(), bool clearPressureOnMemoryRelease = true);
- WEBCORE_EXPORT void setReceivedMemoryPressure(MemoryPressureReason);
- WEBCORE_EXPORT void clearMemoryPressure();
- WEBCORE_EXPORT bool shouldWaitForMemoryClearMessage();
+ void installMemoryReleaseBlock(void (^releaseMemoryBlock)(), bool clearPressureOnMemoryRelease = true);
+ void setReceivedMemoryPressure(MemoryPressureReason);
+ void clearMemoryPressure();
+ bool shouldWaitForMemoryClearMessage();
void respondToMemoryPressureIfNeeded();
#endif
static bool s_loggingEnabled;
};
- WEBCORE_EXPORT static void releaseMemory(bool critical);
+ static void releaseMemory(bool critical);
private:
static void releaseNoncriticalMemory();
struct PasteboardWebContent {
#if !(PLATFORM(EFL) || PLATFORM(GTK) || PLATFORM(WIN))
- WEBCORE_EXPORT PasteboardWebContent();
- WEBCORE_EXPORT ~PasteboardWebContent();
+ PasteboardWebContent();
+ ~PasteboardWebContent();
bool canSmartCopyOrDelete;
RefPtr<SharedBuffer> dataInWebArchiveFormat;
RefPtr<SharedBuffer> dataInRTFDFormat;
};
struct PasteboardImage {
- WEBCORE_EXPORT PasteboardImage();
- WEBCORE_EXPORT ~PasteboardImage();
+ PasteboardImage();
+ ~PasteboardImage();
RefPtr<Image> image;
#if !(PLATFORM(EFL) || PLATFORM(GTK) || PLATFORM(WIN))
PasteboardURL url;
public:
~Pasteboard();
- WEBCORE_EXPORT static PassOwnPtr<Pasteboard> createForCopyAndPaste();
+ static PassOwnPtr<Pasteboard> createForCopyAndPaste();
static PassOwnPtr<Pasteboard> createPrivate(); // Temporary pasteboard. Can put data on this and then write to another pasteboard with writePasteboard.
bool hasData();
void writeMarkup(const String& markup);
enum SmartReplaceOption { CanSmartReplace, CannotSmartReplace };
- WEBCORE_EXPORT void writePlainText(const String&, SmartReplaceOption); // FIXME: Two separate functions would be clearer than one function with an argument.
+ void writePlainText(const String&, SmartReplaceOption); // FIXME: Two separate functions would be clearer than one function with an argument.
void writePasteboard(const Pasteboard& sourcePasteboard);
#if ENABLE(DRAG_SUPPORT)
#endif // USE(EXPORT_MACROS)
+#if USE(EXPORT_MACROS_FOR_TESTING)
+
+#if defined(WEBCORE_IS_LINKED_IN_SAME_BINARY)
+#define WEBCORE_TESTING WTF_EXPORT_DECLARATION
+#else
+#define WEBCORE_TESTING WTF_IMPORT_DECLARATION
+#endif
+
+#else // USE(EXPORT_MACROS_FOR_TESTING)
+
+#define WEBCORE_TESTING
+
+#endif // USE(EXPORT_MACROS_FOR_TESTING)
+
#endif // PlatformExportMacros_h
{
}
- WEBCORE_EXPORT void disambiguateKeyDownEvent(Type, bool backwardCompatibilityMode = false); // Only used on platforms that need it, i.e. those that generate KeyDown events.
+ void disambiguateKeyDownEvent(Type, bool backwardCompatibilityMode = false); // Only used on platforms that need it, i.e. those that generate KeyDown events.
// Text as as generated by processing a virtual key code with a keyboard layout
// (in most cases, just a character code, but the layout can emit several
class PlatformPasteboard {
public:
// FIXME: probably we don't need a constructor that takes a pasteboard name for iOS.
- WEBCORE_EXPORT explicit PlatformPasteboard(const String& pasteboardName);
+ explicit PlatformPasteboard(const String& pasteboardName);
#if PLATFORM(IOS)
- WEBCORE_EXPORT PlatformPasteboard();
+ PlatformPasteboard();
#endif
- WEBCORE_EXPORT static String uniqueName();
+ static String uniqueName();
- WEBCORE_EXPORT void getTypes(Vector<String>& types);
- WEBCORE_EXPORT PassRefPtr<SharedBuffer> bufferForType(const String& pasteboardType);
- WEBCORE_EXPORT void getPathnamesForType(Vector<String>& pathnames, const String& pasteboardType);
- WEBCORE_EXPORT String stringForType(const String& pasteboardType);
- WEBCORE_EXPORT long changeCount() const;
- WEBCORE_EXPORT Color color();
- WEBCORE_EXPORT URL url();
+ void getTypes(Vector<String>& types);
+ PassRefPtr<SharedBuffer> bufferForType(const String& pasteboardType);
+ void getPathnamesForType(Vector<String>& pathnames, const String& pasteboardType);
+ String stringForType(const String& pasteboardType);
+ long changeCount() const;
+ Color color();
+ URL url();
// Take ownership of the pasteboard, and return new change count.
- WEBCORE_EXPORT long addTypes(const Vector<String>& pasteboardTypes);
- WEBCORE_EXPORT long setTypes(const Vector<String>& pasteboardTypes);
+ long addTypes(const Vector<String>& pasteboardTypes);
+ long setTypes(const Vector<String>& pasteboardTypes);
// These methods will return 0 if pasteboard ownership has been taken from us.
- WEBCORE_EXPORT long copy(const String& fromPasteboard);
- WEBCORE_EXPORT long setBufferForType(PassRefPtr<SharedBuffer>, const String& pasteboardType);
- WEBCORE_EXPORT long setPathnamesForType(const Vector<String>& pathnames, const String& pasteboardType);
- WEBCORE_EXPORT long setStringForType(const String&, const String& pasteboardType);
- WEBCORE_EXPORT void write(const PasteboardWebContent&);
- WEBCORE_EXPORT void write(const PasteboardImage&);
- WEBCORE_EXPORT void write(const String& pasteboardType, const String&);
- WEBCORE_EXPORT PassRefPtr<SharedBuffer> readBuffer(int index, const String& pasteboardType);
- WEBCORE_EXPORT String readString(int index, const String& pasteboardType);
- WEBCORE_EXPORT URL readURL(int index, const String& pasteboardType);
- WEBCORE_EXPORT int count();
+ long copy(const String& fromPasteboard);
+ long setBufferForType(PassRefPtr<SharedBuffer>, const String& pasteboardType);
+ long setPathnamesForType(const Vector<String>& pathnames, const String& pasteboardType);
+ long setStringForType(const String&, const String& pasteboardType);
+ void write(const PasteboardWebContent&);
+ void write(const PasteboardImage&);
+ void write(const String& pasteboardType, const String&);
+ PassRefPtr<SharedBuffer> readBuffer(int index, const String& pasteboardType);
+ String readString(int index, const String& pasteboardType);
+ URL readURL(int index, const String& pasteboardType);
+ int count();
private:
#if PLATFORM(MAC)
class PlatformSpeechSynthesisVoice : public RefCounted<PlatformSpeechSynthesisVoice> {
public:
- WEBCORE_EXPORT static PassRefPtr<PlatformSpeechSynthesisVoice> create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault);
+ static PassRefPtr<PlatformSpeechSynthesisVoice> create(const String& voiceURI, const String& name, const String& lang, bool localService, bool isDefault);
static PassRefPtr<PlatformSpeechSynthesisVoice> create();
const String& voiceURI() const { return m_voiceURI; }
class PlatformSpeechSynthesizer {
public:
- WEBCORE_EXPORT explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*);
+ explicit PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient*);
// FIXME: We have multiple virtual functions just so we can support a mock for testing.
// Seems wasteful. Would be nice to find a better way.
- WEBCORE_EXPORT virtual ~PlatformSpeechSynthesizer();
+ virtual ~PlatformSpeechSynthesizer();
const Vector<RefPtr<PlatformSpeechSynthesisVoice>>& voiceList() const;
virtual void speak(PassRefPtr<PlatformSpeechSynthesisUtterance>);
class MediaSessionManager : private RemoteCommandListenerClient, private SystemSleepListener::Client, private AudioHardwareListener::Client {
public:
- WEBCORE_EXPORT static MediaSessionManager& sharedManager();
+ static MediaSessionManager& sharedManager();
virtual ~MediaSessionManager() { }
bool has(MediaSession::MediaType) const;
int count(MediaSession::MediaType) const;
bool activeAudioSessionRequired() const;
- WEBCORE_EXPORT void beginInterruption(MediaSession::InterruptionType);
- WEBCORE_EXPORT void endInterruption(MediaSession::EndInterruptionFlags);
+ void beginInterruption(MediaSession::InterruptionType);
+ void endInterruption(MediaSession::EndInterruptionFlags);
- WEBCORE_EXPORT void applicationWillEnterForeground() const;
- WEBCORE_EXPORT void applicationWillEnterBackground() const;
+ void applicationWillEnterForeground() const;
+ void applicationWillEnterBackground() const;
void wirelessRoutesAvailableChanged();
enum SessionRestrictionFlags {
};
typedef unsigned SessionRestrictions;
- WEBCORE_EXPORT void addRestriction(MediaSession::MediaType, SessionRestrictions);
- WEBCORE_EXPORT void removeRestriction(MediaSession::MediaType, SessionRestrictions);
- WEBCORE_EXPORT SessionRestrictions restrictions(MediaSession::MediaType);
+ void addRestriction(MediaSession::MediaType, SessionRestrictions);
+ void removeRestriction(MediaSession::MediaType, SessionRestrictions);
+ SessionRestrictions restrictions(MediaSession::MediaType);
virtual void resetRestrictions();
virtual void sessionWillBeginPlayback(MediaSession&);
void updateSessionState();
// RemoteCommandListenerClient
- WEBCORE_EXPORT virtual void didReceiveRemoteControlCommand(MediaSession::RemoteControlCommandType) override;
+ virtual void didReceiveRemoteControlCommand(MediaSession::RemoteControlCommandType) override;
// AudioHardwareListenerClient
virtual void audioHardwareDidBecomeActive() override { }
public:
FloatPoint() : m_x(0), m_y(0) { }
FloatPoint(float x, float y) : m_x(x), m_y(y) { }
- WEBCORE_EXPORT FloatPoint(const IntPoint&);
+ FloatPoint(const IntPoint&);
explicit FloatPoint(const FloatSize& size) : m_x(size.width()), m_y(size.height()) { }
static FloatPoint zero() { return FloatPoint(); }
}
#if USE(CG)
- WEBCORE_EXPORT FloatPoint(const CGPoint&);
- WEBCORE_EXPORT operator CGPoint() const;
+ FloatPoint(const CGPoint&);
+ operator CGPoint() const;
#endif
#if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT FloatPoint(const NSPoint&);
- WEBCORE_EXPORT operator NSPoint() const;
+ FloatPoint(const NSPoint&);
+ operator NSPoint() const;
#endif
FloatPoint matrixTransform(const TransformationMatrix&) const;
// that is, if two edges are parallel to the x-axis and the other two
// are parallel to the y-axis. If this method returns true, the
// corresponding FloatRect can be retrieved with boundingBox().
- WEBCORE_EXPORT bool isRectilinear() const;
+ bool isRectilinear() const;
// Tests whether the given point is inside, or on an edge or corner of this quad.
- WEBCORE_EXPORT bool containsPoint(const FloatPoint&) const;
+ bool containsPoint(const FloatPoint&) const;
// Tests whether the four corners of other are inside, or coincident with the sides of this quad.
// Note that this only works for convex quads, but that includes all quads that originate
// from transformed rects.
- WEBCORE_EXPORT bool containsQuad(const FloatQuad&) const;
+ bool containsQuad(const FloatQuad&) const;
// Tests whether any part of the rectangle intersects with this quad.
// This only works for convex quads.
(m_p1.y() + m_p2.y() + m_p3.y() + m_p4.y()) / 4.0);
}
- WEBCORE_EXPORT FloatRect boundingBox() const;
+ FloatRect boundingBox() const;
IntRect enclosingBoundingBox() const
{
return enclosingIntRect(boundingBox());
: m_location(location), m_size(size) { }
FloatRect(float x, float y, float width, float height)
: m_location(FloatPoint(x, y)), m_size(FloatSize(width, height)) { }
- WEBCORE_EXPORT FloatRect(const IntRect&);
+ FloatRect(const IntRect&);
static FloatRect narrowPrecision(double x, double y, double width, double height);
FloatPoint minXMaxYCorner() const { return FloatPoint(m_location.x(), m_location.y() + m_size.height()); } // typically bottomLeft
FloatPoint maxXMaxYCorner() const { return FloatPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight
- WEBCORE_EXPORT bool intersects(const FloatRect&) const;
- WEBCORE_EXPORT bool contains(const FloatRect&) const;
- WEBCORE_EXPORT bool contains(const FloatPoint&, ContainsMode = InsideOrOnStroke) const;
+ bool intersects(const FloatRect&) const;
+ bool contains(const FloatRect&) const;
+ bool contains(const FloatPoint&, ContainsMode = InsideOrOnStroke) const;
- WEBCORE_EXPORT void intersect(const FloatRect&);
- WEBCORE_EXPORT void unite(const FloatRect&);
+ void intersect(const FloatRect&);
+ void unite(const FloatRect&);
void uniteEvenIfEmpty(const FloatRect&);
void uniteIfNonZero(const FloatRect&);
void extend(const FloatPoint&);
}
void inflate(float d) { inflateX(d); inflateY(d); }
void scale(float s) { scale(s, s); }
- WEBCORE_EXPORT void scale(float sx, float sy);
+ void scale(float sx, float sy);
FloatRect transposedRect() const { return FloatRect(m_location.transposedPoint(), m_size.transposedSize()); }
void fitToPoints(const FloatPoint& p0, const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& p3);
#if USE(CG)
- WEBCORE_EXPORT FloatRect(const CGRect&);
- WEBCORE_EXPORT operator CGRect() const;
+ FloatRect(const CGRect&);
+ operator CGRect() const;
#endif
#if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT FloatRect(const NSRect&);
- WEBCORE_EXPORT operator NSRect() const;
+ FloatRect(const NSRect&);
+ operator NSRect() const;
#endif
#if USE(CAIRO)
public:
FloatSize() : m_width(0), m_height(0) { }
FloatSize(float width, float height) : m_width(width), m_height(height) { }
- WEBCORE_EXPORT FloatSize(const IntSize&);
+ FloatSize(const IntSize&);
static FloatSize narrowPrecision(double width, double height);
void setHeight(float height) { m_height = height; }
bool isEmpty() const { return m_width <= 0 || m_height <= 0; }
- WEBCORE_EXPORT bool isZero() const;
+ bool isZero() const;
bool isExpressibleAsIntSize() const;
float aspectRatio() const { return m_width / m_height; }
m_height < other.m_height ? m_height : other.m_height);
}
- WEBCORE_EXPORT float diagonalLength() const;
+ float diagonalLength() const;
float diagonalLengthSquared() const
{
return m_width * m_width + m_height * m_height;
}
#if USE(CG)
- WEBCORE_EXPORT explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT operator CGSize() const;
+ explicit FloatSize(const CGSize&); // don't do this implicitly since it's lossy
+ operator CGSize() const;
#endif
#if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy
+ explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy
operator NSSize() const;
#endif
class Font {
public:
- WEBCORE_EXPORT Font();
- WEBCORE_EXPORT Font(const FontDescription&, float letterSpacing, float wordSpacing);
+ Font();
+ Font(const FontDescription&, float letterSpacing, float wordSpacing);
// This constructor is only used if the platform wants to start with a native font.
- WEBCORE_EXPORT Font(const FontPlatformData&, bool isPrinting, FontSmoothingMode = AutoSmoothing);
+ Font(const FontPlatformData&, bool isPrinting, FontSmoothingMode = AutoSmoothing);
// FIXME: We should make this constructor platform-independent.
#if PLATFORM(IOS)
~Font();
Font(const Font&);
- WEBCORE_EXPORT Font& operator=(const Font&);
+ Font& operator=(const Font&);
- WEBCORE_EXPORT bool operator==(const Font& other) const;
+ bool operator==(const Font& other) const;
bool operator!=(const Font& other) const { return !(*this == other); }
const FontDescription& fontDescription() const { return m_fontDescription; }
void update(PassRefPtr<FontSelector>) const;
enum CustomFontNotReadyAction { DoNotPaintIfFontNotReady, UseFallbackIfFontNotReady };
- WEBCORE_EXPORT float drawText(GraphicsContext*, const TextRun&, const FloatPoint&, int from = 0, int to = -1, CustomFontNotReadyAction = DoNotPaintIfFontNotReady) const;
+ float drawText(GraphicsContext*, const TextRun&, const FloatPoint&, int from = 0, int to = -1, CustomFontNotReadyAction = DoNotPaintIfFontNotReady) const;
void drawGlyphs(GraphicsContext*, const SimpleFontData*, const GlyphBuffer&, int from, int numGlyphs, const FloatPoint&) const;
void drawEmphasisMarks(GraphicsContext*, const TextRun&, const AtomicString& mark, const FloatPoint&, int from = 0, int to = -1) const;
DashArray dashesForIntersectionsWithRect(const TextRun&, const FloatPoint& textOrigin, const FloatRect& lineExtents) const;
- WEBCORE_EXPORT float width(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, GlyphOverflow* = 0) const;
+ float width(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, GlyphOverflow* = 0) const;
float width(const TextRun&, int& charsConsumed, String& glyphName) const;
PassOwnPtr<TextLayout> createLayout(RenderText*, float xPos, bool collapseWhiteSpace) const;
static unsigned expansionOpportunityCount(const LChar*, size_t length, TextDirection, bool& isAfterExpansion);
static unsigned expansionOpportunityCount(const UChar*, size_t length, TextDirection, bool& isAfterExpansion);
- WEBCORE_EXPORT static void setShouldUseSmoothing(bool);
- WEBCORE_EXPORT static bool shouldUseSmoothing();
+ static void setShouldUseSmoothing(bool);
+ static bool shouldUseSmoothing();
enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow };
CodePath codePath(const TextRun&) const;
#endif
// Useful for debugging the different font rendering code paths.
- WEBCORE_EXPORT static void setCodePath(CodePath);
+ static void setCodePath(CodePath);
static CodePath codePath();
static CodePath s_codePath;
- WEBCORE_EXPORT static void setDefaultTypesettingFeatures(TypesettingFeatures);
+ static void setDefaultTypesettingFeatures(TypesettingFeatures);
static TypesettingFeatures defaultTypesettingFeatures();
static const uint8_t s_roundingHackCharacterTable[256];
void getTraitsInFamily(const AtomicString&, Vector<unsigned>&);
PassRefPtr<SimpleFontData> getCachedFontData(const FontDescription&, const AtomicString&, bool checkingAlternateName = false, ShouldRetain = Retain);
- WEBCORE_EXPORT PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, ShouldRetain = Retain);
+ PassRefPtr<SimpleFontData> getLastResortFallbackFont(const FontDescription&, ShouldRetain = Retain);
SimpleFontData* getNonRetainedLastResortFallbackFont(const FontDescription&);
void addClient(FontSelector*);
void removeClient(FontSelector*);
unsigned short generation();
- WEBCORE_EXPORT void invalidate();
+ void invalidate();
- WEBCORE_EXPORT size_t fontDataCount();
- WEBCORE_EXPORT size_t inactiveFontDataCount();
- WEBCORE_EXPORT void purgeInactiveFontData(int count = INT_MAX);
+ size_t fontDataCount();
+ size_t inactiveFontDataCount();
+ void purgeInactiveFontData(int count = INT_MAX);
#if PLATFORM(WIN)
PassRefPtr<SimpleFontData> fontDataFromDescriptionAndLogFont(const FontDescription&, ShouldRetain, const LOGFONT&, AtomicString& outFontFamilyName);
purgeInactiveFontDataIfNeeded();
}
- void WEBCORE_EXPORT purgeInactiveFontDataIfNeeded();
+ void purgeInactiveFontDataIfNeeded();
// FIXME: This method should eventually be removed.
FontPlatformData* getCachedFontPlatformData(const FontDescription&, const AtomicString& family, bool checkingAlternateName = false);
PassRefPtr<SimpleFontData> similarFontPlatformData(const FontDescription&);
#endif
- WEBCORE_EXPORT PassRefPtr<SimpleFontData> getCachedFontData(const FontPlatformData*, ShouldRetain = Retain);
+ PassRefPtr<SimpleFontData> getCachedFontData(const FontPlatformData*, ShouldRetain = Retain);
// Don't purge if this count is > 0;
int m_purgePreventCount;
const SimpleFontData* primarySimpleFontData(const FontDescription&) const;
const FontData* primaryFontData(const FontDescription& description) const { return realizeFontDataAt(description, 0); }
- WEBCORE_EXPORT const FontData* realizeFontDataAt(const FontDescription&, unsigned index) const;
+ const FontData* realizeFontDataAt(const FontDescription&, unsigned index) const;
private:
FontGlyphs(PassRefPtr<FontSelector>);
FontGlyphs(const FontPlatformData&);
- WEBCORE_EXPORT void releaseFontData();
+ void releaseFontData();
mutable Vector<RefPtr<FontData>, 1> m_realizedFontData;
mutable GlyphPages m_pages;
#if OS(DARWIN)
#if USE(APPKIT)
- WEBCORE_EXPORT FontPlatformData(NSFont*, float size, bool isPrinterFont = false, bool syntheticBold = false, bool syntheticOblique = false,
+ FontPlatformData(NSFont*, float size, bool isPrinterFont = false, bool syntheticBold = false, bool syntheticOblique = false,
FontOrientation = Horizontal, FontWidthVariant = RegularWidth);
#else
- WEBCORE_EXPORT FontPlatformData(CTFontRef, float size, bool isPrinterFont = false, bool syntheticBold = false, bool syntheticOblique = false,
+ FontPlatformData(CTFontRef, float size, bool isPrinterFont = false, bool syntheticBold = false, bool syntheticOblique = false,
FontOrientation = Horizontal, FontWidthVariant = RegularWidth);
#endif
FontPlatformData(CTFontRef, float size, bool syntheticBold = false, bool syntheticOblique = false, FontOrientation = Horizontal, FontWidthVariant = RegularWidth);
#endif
- WEBCORE_EXPORT ~FontPlatformData();
+ ~FontPlatformData();
#if PLATFORM(WIN)
HFONT hfont() const { return m_font ? m_font->get() : 0; }
// The system fallback font has special rules (see above).
bool isSystemFallback() const { return m_isSystemFallback; }
- WEBCORE_EXPORT static size_t treeGlyphPageCount();
+ static size_t treeGlyphPageCount();
size_t pageCount() const;
private:
{
return adoptRef(new Gradient(p0, r0, p1, r1, aspectRatio));
}
- WEBCORE_EXPORT ~Gradient();
+ ~Gradient();
struct ColorStop;
- WEBCORE_EXPORT void addColorStop(const ColorStop&);
+ void addColorStop(const ColorStop&);
void addColorStop(float, const Color&);
bool hasAlpha() const;
#endif
private:
- WEBCORE_EXPORT Gradient(const FloatPoint& p0, const FloatPoint& p1);
+ Gradient(const FloatPoint& p0, const FloatPoint& p1);
Gradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r1, float aspectRatio);
void platformInit() { m_gradient = 0; }
WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED;
public:
#if !PLATFORM(IOS)
- WEBCORE_EXPORT GraphicsContext(PlatformGraphicsContext*);
+ GraphicsContext(PlatformGraphicsContext*);
#else
- WEBCORE_EXPORT GraphicsContext(PlatformGraphicsContext*, bool shouldUseContextColors = true);
+ GraphicsContext(PlatformGraphicsContext*, bool shouldUseContextColors = true);
#endif
- WEBCORE_EXPORT ~GraphicsContext();
+ ~GraphicsContext();
- WEBCORE_EXPORT PlatformGraphicsContext* platformContext() const;
+ PlatformGraphicsContext* platformContext() const;
float strokeThickness() const;
void setStrokeThickness(float);
void setStrokeStyle(StrokeStyle);
Color strokeColor() const;
ColorSpace strokeColorSpace() const;
- WEBCORE_EXPORT void setStrokeColor(const Color&, ColorSpace);
+ void setStrokeColor(const Color&, ColorSpace);
void setStrokePattern(PassRefPtr<Pattern>);
Pattern* strokePattern() const;
void setFillRule(WindRule);
Color fillColor() const;
ColorSpace fillColorSpace() const;
- WEBCORE_EXPORT void setFillColor(const Color&, ColorSpace);
+ void setFillColor(const Color&, ColorSpace);
void setFillPattern(PassRefPtr<Pattern>);
Pattern* fillPattern() const;
- WEBCORE_EXPORT void setFillGradient(PassRefPtr<Gradient>);
+ void setFillGradient(PassRefPtr<Gradient>);
Gradient* fillGradient() const;
void setShadowsIgnoreTransforms(bool);
bool shadowsIgnoreTransforms() const;
- WEBCORE_EXPORT void setShouldAntialias(bool);
+ void setShouldAntialias(bool);
bool shouldAntialias() const;
- WEBCORE_EXPORT void setShouldSmoothFonts(bool);
+ void setShouldSmoothFonts(bool);
bool shouldSmoothFonts() const;
// Normally CG enables subpixel-quantization because it improves the performance of aligning glyphs.
void applyFillPattern();
void drawPath(const Path&);
- WEBCORE_EXPORT void drawNativeImage(PassNativeImagePtr, const FloatSize& selfSize, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal, ImageOrientation = DefaultImageOrientation);
+ void drawNativeImage(PassNativeImagePtr, const FloatSize& selfSize, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, BlendMode = BlendModeNormal, ImageOrientation = DefaultImageOrientation);
// Allow font smoothing (LCD antialiasing). Not part of the graphics state.
void setAllowsFontSmoothing(bool);
- WEBCORE_EXPORT void setIsCALayerContext(bool);
+ void setIsCALayerContext(bool);
bool isCALayerContext() const;
- WEBCORE_EXPORT void setIsAcceleratedContext(bool);
+ void setIsAcceleratedContext(bool);
#endif
bool isAcceleratedContext() const;
- WEBCORE_EXPORT void save();
- WEBCORE_EXPORT void restore();
+ void save();
+ void restore();
// These draw methods will do both stroking and filling.
// FIXME: ...except drawRect(), which fills properly but always strokes
#endif
void drawConvexPolygon(size_t numPoints, const FloatPoint*, bool shouldAntialias = false);
- WEBCORE_EXPORT void fillPath(const Path&);
+ void fillPath(const Path&);
void strokePath(const Path&);
void fillEllipse(const FloatRect&);
void strokeEllipse(const FloatRect&);
- WEBCORE_EXPORT void fillRect(const FloatRect&);
- WEBCORE_EXPORT void fillRect(const FloatRect&, const Color&, ColorSpace);
+ void fillRect(const FloatRect&);
+ void fillRect(const FloatRect&, const Color&, ColorSpace);
void fillRect(const FloatRect&, Gradient&);
void fillRect(const FloatRect&, const Color&, ColorSpace, CompositeOperator, BlendMode = BlendModeNormal);
void fillRoundedRect(const FloatRoundedRect&, const Color&, ColorSpace, BlendMode = BlendModeNormal);
void fillRectWithRoundedHole(const FloatRect&, const FloatRoundedRect& roundedHoleRect, const Color&, ColorSpace);
- WEBCORE_EXPORT void clearRect(const FloatRect&);
+ void clearRect(const FloatRect&);
- WEBCORE_EXPORT void strokeRect(const FloatRect&, float lineWidth);
+ void strokeRect(const FloatRect&, float lineWidth);
- WEBCORE_EXPORT void drawImage(Image*, ColorSpace, const FloatPoint& destination, const ImagePaintingOptions& = ImagePaintingOptions());
+ void drawImage(Image*, ColorSpace, const FloatPoint& destination, const ImagePaintingOptions& = ImagePaintingOptions());
void drawImage(Image*, ColorSpace, const FloatRect& destination, const ImagePaintingOptions& = ImagePaintingOptions());
void drawImage(Image*, ColorSpace, const FloatRect& destination, const FloatRect& source, const ImagePaintingOptions& = ImagePaintingOptions());
void drawImageBuffer(ImageBuffer*, ColorSpace, const FloatRect& destination, const ImagePaintingOptions& = ImagePaintingOptions());
void drawImageBuffer(ImageBuffer*, ColorSpace, const FloatRect& destination, const FloatRect& source, const ImagePaintingOptions& = ImagePaintingOptions());
- WEBCORE_EXPORT void setImageInterpolationQuality(InterpolationQuality);
+ void setImageInterpolationQuality(InterpolationQuality);
InterpolationQuality imageInterpolationQuality() const;
- WEBCORE_EXPORT void clip(const IntRect&);
- WEBCORE_EXPORT void clip(const FloatRect&);
+ void clip(const IntRect&);
+ void clip(const FloatRect&);
void clipRoundedRect(const FloatRoundedRect&);
void clipOut(const FloatRect&);
#if PLATFORM(IOS)
bool emojiDrawingEnabled();
- WEBCORE_EXPORT void setEmojiDrawingEnabled(bool);
+ void setEmojiDrawingEnabled(bool);
#endif
#if !PLATFORM(IOS)
#if !PLATFORM(IOS)
void drawBidiText(const Font&, const TextRun&, const FloatPoint&, Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady);
#else
- WEBCORE_EXPORT float drawBidiText(const Font&, const TextRun&, const FloatPoint&, Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady, BidiStatus* = 0, int length = -1);
+ float drawBidiText(const Font&, const TextRun&, const FloatPoint&, Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady, BidiStatus* = 0, int length = -1);
#endif
enum RoundingMode {
RoundAllSides,
FloatRect roundToDevicePixels(const FloatRect&, RoundingMode = RoundAllSides);
FloatRect computeLineBoundsForText(const FloatPoint&, float width, bool printing);
- WEBCORE_EXPORT void drawLineForText(const FloatPoint&, float width, bool printing, bool doubleLines = false);
+ void drawLineForText(const FloatPoint&, float width, bool printing, bool doubleLines = false);
void drawLinesForText(const FloatPoint&, const DashArray& widths, bool printing, bool doubleLines = false);
enum DocumentMarkerLineStyle {
#if PLATFORM(IOS)
static void updateDocumentMarkerResources();
void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarkerLineStyle);
- WEBCORE_EXPORT bool paintingDisabled() const;
+ bool paintingDisabled() const;
void setPaintingDisabled(bool);
- WEBCORE_EXPORT bool updatingControlTints() const;
+ bool updatingControlTints() const;
void setUpdatingControlTints(bool);
- WEBCORE_EXPORT void beginTransparencyLayer(float opacity);
- WEBCORE_EXPORT void endTransparencyLayer();
+ void beginTransparencyLayer(float opacity);
+ void endTransparencyLayer();
bool isInTransparencyLayer() const;
bool hasShadow() const;
- WEBCORE_EXPORT void setShadow(const FloatSize&, float blur, const Color&, ColorSpace);
+ void setShadow(const FloatSize&, float blur, const Color&, ColorSpace);
// Legacy shadow blur radius is used for canvas, and -webkit-box-shadow.
// It has different treatment of radii > 8px.
void setLegacyShadow(const FloatSize&, float blur, const Color&, ColorSpace);
bool getShadow(FloatSize&, float&, Color&, ColorSpace&) const;
- WEBCORE_EXPORT void clearShadow();
+ void clearShadow();
bool hasBlurredShadow() const;
#if USE(CAIRO)
void setAlpha(float);
- WEBCORE_EXPORT void setCompositeOperation(CompositeOperator, BlendMode = BlendModeNormal);
+ void setCompositeOperation(CompositeOperator, BlendMode = BlendModeNormal);
CompositeOperator compositeOperation() const;
BlendMode blendModeOperation() const;
void setDrawLuminanceMask(bool);
bool drawLuminanceMask() const;
- WEBCORE_EXPORT void clip(const Path&, WindRule = RULE_EVENODD);
+ void clip(const Path&, WindRule = RULE_EVENODD);
// This clip function is used only by <canvas> code. It allows
// implementations to handle clipping on the canvas differently since
void canvasClip(const Path&, WindRule = RULE_EVENODD);
void clipOut(const Path&);
- WEBCORE_EXPORT void scale(const FloatSize&);
+ void scale(const FloatSize&);
void rotate(float angleInRadians);
void translate(const FloatSize& size) { translate(size.width(), size.height()); }
- WEBCORE_EXPORT void translate(float x, float y);
+ void translate(float x, float y);
void setURLForRect(const URL&, const IntRect&);
// This function applies the device scale factor to the context, making the context capable of
// acting as a base-level context for a HiDPI environment.
- WEBCORE_EXPORT void applyDeviceScaleFactor(float);
+ void applyDeviceScaleFactor(float);
void platformApplyDeviceScaleFactor(float);
#if OS(WINDOWS)
class GraphicsLayer {
WTF_MAKE_NONCOPYABLE(GraphicsLayer); WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT static std::unique_ptr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayerClient&);
+ static std::unique_ptr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayerClient&);
- WEBCORE_EXPORT virtual ~GraphicsLayer();
+ virtual ~GraphicsLayer();
virtual void initialize() { }
const Vector<GraphicsLayer*>& children() const { return m_children; }
// Returns true if the child list changed.
- WEBCORE_EXPORT virtual bool setChildren(const Vector<GraphicsLayer*>&);
+ virtual bool setChildren(const Vector<GraphicsLayer*>&);
// Add child layers. If the child is already parented, it will be removed from its old parent.
- WEBCORE_EXPORT virtual void addChild(GraphicsLayer*);
- WEBCORE_EXPORT virtual void addChildAtIndex(GraphicsLayer*, int index);
- WEBCORE_EXPORT virtual void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling);
- WEBCORE_EXPORT virtual void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling);
- WEBCORE_EXPORT virtual bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild);
+ virtual void addChild(GraphicsLayer*);
+ virtual void addChildAtIndex(GraphicsLayer*, int index);
+ virtual void addChildAbove(GraphicsLayer* layer, GraphicsLayer* sibling);
+ virtual void addChildBelow(GraphicsLayer* layer, GraphicsLayer* sibling);
+ virtual bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild);
- WEBCORE_EXPORT void removeAllChildren();
- WEBCORE_EXPORT virtual void removeFromParent();
+ void removeAllChildren();
+ virtual void removeFromParent();
// The parent() of a maskLayer is set to the layer being masked.
GraphicsLayer* maskLayer() const { return m_maskLayer; }
bool isMaskLayer() const { return m_isMaskLayer; }
// The given layer will replicate this layer and its children; the replica renders behind this layer.
- WEBCORE_EXPORT virtual void setReplicatedByLayer(GraphicsLayer*);
+ virtual void setReplicatedByLayer(GraphicsLayer*);
// Whether this layer is being replicated by another layer.
bool isReplicated() const { return m_replicaLayer; }
// The layer that replicates this layer (if any).
// The size of the layer.
const FloatSize& size() const { return m_size; }
- WEBCORE_EXPORT virtual void setSize(const FloatSize&);
+ virtual void setSize(const FloatSize&);
// The boundOrigin affects the offset at which content is rendered, and sublayers are positioned.
const FloatPoint& boundsOrigin() const { return m_boundsOrigin; }
// Note that this covers the entire layer. Use setContentsToSolidColor() if the color should
// only cover the contentsRect.
const Color& backgroundColor() const { return m_backgroundColor; }
- WEBCORE_EXPORT virtual void setBackgroundColor(const Color&);
+ virtual void setBackgroundColor(const Color&);
// opaque means that we know the layer contents have no alpha
bool contentsOpaque() const { return m_contentsOpaque; }
virtual void pauseAnimation(const String& /*animationName*/, double /*timeOffset*/) { }
virtual void removeAnimation(const String& /*animationName*/) { }
- WEBCORE_EXPORT virtual void suspendAnimations(double time);
- WEBCORE_EXPORT virtual void resumeAnimations();
+ virtual void suspendAnimations(double time);
+ virtual void resumeAnimations();
// Layer contents
virtual void setContentsToImage(Image*) { }
// z-position is the z-equivalent of position(). It's only used for debugging purposes.
virtual float zPosition() const { return m_zPosition; }
- WEBCORE_EXPORT virtual void setZPosition(float);
+ virtual void setZPosition(float);
- WEBCORE_EXPORT virtual void distributeOpacity(float);
- WEBCORE_EXPORT virtual float accumulatedOpacity() const;
+ virtual void distributeOpacity(float);
+ virtual float accumulatedOpacity() const;
#if PLATFORM(IOS)
bool hasFlattenedPerspectiveTransform() const { return !preserves3D() && m_childrenTransform.hasPerspective(); }
float deviceScaleFactor() const { return m_client.deviceScaleFactor(); }
virtual void deviceOrPageScaleFactorChanged() { }
- WEBCORE_EXPORT void noteDeviceOrPageScaleFactorChangedIncludingDescendants();
+ void noteDeviceOrPageScaleFactorChangedIncludingDescendants();
// Some compositing systems may do internal batching to synchronize compositing updates
// with updates drawn into the window. These methods flush internal batched state on this layer
String layerTreeAsText(LayerTreeAsTextBehavior = LayerTreeAsTextBehaviorNormal) const;
// Return an estimate of the backing store memory cost (in bytes). May be incorrect for tiled layers.
- WEBCORE_EXPORT virtual double backingStoreMemoryEstimate() const;
+ virtual double backingStoreMemoryEstimate() const;
bool usingTiledBacking() const { return m_usingTiledBacking; }
virtual TiledBacking* tiledBacking() const { return 0; }
protected:
// Should be called from derived class destructors. Should call willBeDestroyed() on super.
- WEBCORE_EXPORT virtual void willBeDestroyed();
+ virtual void willBeDestroyed();
#if ENABLE(CSS_FILTERS)
// This method is used by platform GraphicsLayer classes to clear the filters
GraphicsLayer* replicatedLayer() const { return m_replicatedLayer; }
virtual void setReplicatedLayer(GraphicsLayer* layer) { m_replicatedLayer = layer; }
- WEBCORE_EXPORT explicit GraphicsLayer(GraphicsLayerClient&);
+ explicit GraphicsLayer(GraphicsLayerClient&);
void dumpProperties(TextStream&, int indent, LayerTreeAsTextBehavior) const;
virtual void dumpAdditionalProperties(TextStream&, int /*indent*/, LayerTreeAsTextBehavior) const { }
- WEBCORE_EXPORT virtual void getDebugBorderInfo(Color&, float& width) const;
+ virtual void getDebugBorderInfo(Color&, float& width) const;
GraphicsLayerClient& m_client;
String m_name;
class Icon : public RefCounted<Icon> {
public:
- WEBCORE_EXPORT static PassRefPtr<Icon> createIconForFiles(const Vector<String>& filenames);
+ static PassRefPtr<Icon> createIconForFiles(const Vector<String>& filenames);
- WEBCORE_EXPORT ~Icon();
+ ~Icon();
void paint(GraphicsContext*, const IntRect&);
#if PLATFORM(IOS)
// FIXME: Make this work for non-iOS ports and remove the PLATFORM(IOS)-guard.
- WEBCORE_EXPORT static PassRefPtr<Icon> createIconForImage(NativeImagePtr);
+ static PassRefPtr<Icon> createIconForImage(NativeImagePtr);
#endif
private:
virtual ~Image();
static PassRefPtr<Image> create(ImageObserver* = 0);
- WEBCORE_EXPORT static PassRefPtr<Image> loadPlatformResource(const char* name);
- WEBCORE_EXPORT static bool supportsType(const String&);
+ static PassRefPtr<Image> loadPlatformResource(const char* name);
+ static bool supportsType(const String&);
virtual bool isSVGImage() const { return false; }
virtual bool isBitmapImage() const { return false; }
// the image contains only resources from its own security origin.
virtual bool hasSingleSecurityOrigin() const { return false; }
- WEBCORE_EXPORT static Image* nullImage();
+ static Image* nullImage();
bool isNull() const { return size().isEmpty(); }
virtual void setContainerSize(const FloatSize&) { }
virtual FloatSize originalSize() const { return size(); }
#endif
- WEBCORE_EXPORT bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived);
+ bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived);
virtual bool dataChanged(bool /*allDataReceived*/) { return false; }
virtual String filenameExtension() const { return String(); } // null string if unknown
static std::unique_ptr<ImageBuffer> createCompatibleBuffer(const FloatSize&, float resolutionScale, ColorSpace, const GraphicsContext*, bool hasAlpha);
- WEBCORE_EXPORT ~ImageBuffer();
+ ~ImageBuffer();
// The actual resolution of the backing store
const IntSize& internalSize() const { return m_size; }
const IntSize& logicalSize() const { return m_logicalSize; }
- WEBCORE_EXPORT GraphicsContext* context() const;
+ GraphicsContext* context() const;
- WEBCORE_EXPORT PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavior = Scaled) const;
+ PassRefPtr<Image> copyImage(BackingStoreCopy = CopyBackingStore, ScaleBehavior = Scaled) const;
// Give hints on the faster copyImage Mode, return DontCopyBackingStore if it supports the DontCopyBackingStore behavior
// or return CopyBackingStore if it doesn't.
static BackingStoreCopy fastCopyImageMode();
// This constructor will place its success into the given out-variable
// so that create() knows when it should return failure.
- WEBCORE_EXPORT ImageBuffer(const FloatSize&, float resolutionScale, ColorSpace, RenderingMode, bool& success);
+ ImageBuffer(const FloatSize&, float resolutionScale, ColorSpace, RenderingMode, bool& success);
};
#if USE(CG)
}
#if USE(CG)
- WEBCORE_EXPORT explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT operator CGPoint() const;
+ explicit IntPoint(const CGPoint&); // don't do this implicitly since it's lossy
+ operator CGPoint() const;
#endif
#if !PLATFORM(IOS)
#if OS(DARWIN) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT operator NSPoint() const;
+ explicit IntPoint(const NSPoint&); // don't do this implicitly since it's lossy
+ operator NSPoint() const;
#endif
#endif // !PLATFORM(IOS)
IntRect(int x, int y, int width, int height)
: m_location(IntPoint(x, y)), m_size(IntSize(width, height)) { }
- WEBCORE_EXPORT explicit IntRect(const FloatRect&); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT explicit IntRect(const LayoutRect&); // don't do this implicitly since it's lossy
+ explicit IntRect(const FloatRect&); // don't do this implicitly since it's lossy
+ explicit IntRect(const LayoutRect&); // don't do this implicitly since it's lossy
IntPoint location() const { return m_location; }
IntSize size() const { return m_size; }
IntPoint minXMaxYCorner() const { return IntPoint(m_location.x(), m_location.y() + m_size.height()); } // typically bottomLeft
IntPoint maxXMaxYCorner() const { return IntPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight
- WEBCORE_EXPORT bool intersects(const IntRect&) const;
- WEBCORE_EXPORT bool contains(const IntRect&) const;
+ bool intersects(const IntRect&) const;
+ bool contains(const IntRect&) const;
// This checks to see if the rect contains x,y in the traditional sense.
// Equivalent to checking if the rect contains a 1x1 rect below and to the right of (px,py).
{ return px >= x() && px < maxX() && py >= y() && py < maxY(); }
bool contains(const IntPoint& point) const { return contains(point.x(), point.y()); }
- WEBCORE_EXPORT void intersect(const IntRect&);
- WEBCORE_EXPORT void unite(const IntRect&);
+ void intersect(const IntRect&);
+ void unite(const IntRect&);
void uniteIfNonZero(const IntRect&);
void inflateX(int dx)
m_size.setHeight(m_size.height() + dy + dy);
}
void inflate(int d) { inflateX(d); inflateY(d); }
- WEBCORE_EXPORT void scale(float s);
+ void scale(float s);
IntSize differenceToPoint(const IntPoint&) const;
int distanceSquaredToPoint(const IntPoint& p) const { return differenceToPoint(p).diagonalLengthSquared(); }
#endif
#if USE(CG)
- WEBCORE_EXPORT operator CGRect() const;
+ operator CGRect() const;
#endif
#if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT operator NSRect() const;
+ operator NSRect() const;
#endif
void dump(WTF::PrintStream& out) const;
public:
IntSize() : m_width(0), m_height(0) { }
IntSize(int width, int height) : m_width(width), m_height(height) { }
- WEBCORE_EXPORT explicit IntSize(const FloatSize&); // don't do this implicitly since it's lossy
+ explicit IntSize(const FloatSize&); // don't do this implicitly since it's lossy
int width() const { return m_width; }
int height() const { return m_height; }
}
#if USE(CG)
- WEBCORE_EXPORT explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT operator CGSize() const;
+ explicit IntSize(const CGSize&); // don't do this implicitly since it's lossy
+ operator CGSize() const;
#endif
#if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)
- WEBCORE_EXPORT explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy
- WEBCORE_EXPORT operator NSSize() const;
+ explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy
+ operator NSSize() const;
#endif
#if PLATFORM(WIN)
LayoutRect(const FloatPoint& location, const FloatSize& size)
: m_location(location), m_size(size) { }
LayoutRect(const IntRect& rect) : m_location(rect.location()), m_size(rect.size()) { }
-
- WEBCORE_EXPORT explicit LayoutRect(const FloatRect&); // don't do this implicitly since it's lossy
+
+ explicit LayoutRect(const FloatRect&); // don't do this implicitly since it's lossy
LayoutPoint location() const { return m_location; }
LayoutSize size() const { return m_size; }
LayoutPoint maxXMaxYCorner() const { return LayoutPoint(m_location.x() + m_size.width(), m_location.y() + m_size.height()); } // typically bottomRight
bool intersects(const LayoutRect&) const;
- WEBCORE_EXPORT bool contains(const LayoutRect&) const;
+ bool contains(const LayoutRect&) const;
// This checks to see if the rect contains x,y in the traditional sense.
// Equivalent to checking if the rect contains a 1x1 rect below and to the right of (px,py).
bool contains(const LayoutPoint& point) const { return contains(point.x(), point.y()); }
void intersect(const LayoutRect&);
- WEBCORE_EXPORT void unite(const LayoutRect&);
+ void unite(const LayoutRect&);
void uniteIfNonZero(const LayoutRect&);
void inflateX(LayoutUnit dx)
m_size.setHeight(m_size.height() + dy + dy);
}
void inflate(LayoutUnit d) { inflateX(d); inflateY(d); }
- WEBCORE_EXPORT void scale(float s);
+ void scale(float s);
void scale(float xScale, float yScale);
LayoutRect transposedRect() const { return LayoutRect(m_location.transposedPoint(), m_size.transposedSize()); }
class MediaPlayerFactorySupport {
public:
- WEBCORE_EXPORT static void callRegisterMediaEngine(MediaEngineRegister);
+ static void callRegisterMediaEngine(MediaEngineRegister);
};
}
class Path {
WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT Path();
+ Path();
#if USE(CG)
Path(RetainPtr<CGMutablePathRef>);
#endif
- WEBCORE_EXPORT ~Path();
+ ~Path();
Path(const Path&);
Path& operator=(const Path&);
PreferBezierRoundedRect
};
- WEBCORE_EXPORT void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii, RoundedRectStrategy = PreferNativeRoundedRect);
+ void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii, RoundedRectStrategy = PreferNativeRoundedRect);
void addRoundedRect(const FloatRoundedRect&, RoundedRectStrategy = PreferNativeRoundedRect);
void addRoundedRect(const RoundedRect&);
WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT Region();
- WEBCORE_EXPORT Region(const IntRect&);
+ Region();
+ Region(const IntRect&);
IntRect bounds() const { return m_bounds; }
bool isEmpty() const { return m_bounds.isEmpty(); }
bool isRect() const { return m_shape.isRect(); }
- WEBCORE_EXPORT Vector<IntRect> rects() const;
+ Vector<IntRect> rects() const;
- WEBCORE_EXPORT void unite(const Region&);
- WEBCORE_EXPORT void intersect(const Region&);
- WEBCORE_EXPORT void subtract(const Region&);
+ void unite(const Region&);
+ void intersect(const Region&);
+ void subtract(const Region&);
void translate(const IntSize&);
// Returns true if the query region is a subset of this region.
- WEBCORE_EXPORT bool contains(const Region&) const;
+ bool contains(const Region&) const;
bool contains(const IntPoint&) const;
// Returns true if the query region intersects any part of this region.
bool intersects(const Region&) const;
- WEBCORE_EXPORT unsigned totalArea() const;
+ unsigned totalArea() const;
unsigned gridSize() const { return m_shape.gridSize(); }
void setShapeSegments(const Vector<int>& segments) { m_shape.setSegments(segments); }
void setShapeSpans(const Vector<Span>& spans) { m_shape.setSpans(spans); }
- WEBCORE_EXPORT void updateBoundsFromShape();
+ void updateBoundsFromShape();
private:
static Shape intersectShapes(const Shape& shape1, const Shape& shape2);
static Shape subtractShapes(const Shape& shape1, const Shape& shape2);
- WEBCORE_EXPORT void translate(const IntSize&);
+ void translate(const IntSize&);
void swap(Shape&);
struct CompareContainsOperation;
template<typename CompareOperation>
static bool compareShapes(const Shape& shape1, const Shape& shape2);
- WEBCORE_EXPORT bool isValid() const;
+ bool isValid() const;
// For encoding/decoding only.
const Vector<int, 32>& segments() const { return m_segments; }
// to keep the overall tile cost low.
static const int kTiledLayerTileSize = 512;
- WEBCORE_EXPORT explicit GraphicsLayerCA(GraphicsLayerClient&);
- WEBCORE_EXPORT virtual ~GraphicsLayerCA();
+ explicit GraphicsLayerCA(GraphicsLayerClient&);
+ virtual ~GraphicsLayerCA();
- WEBCORE_EXPORT virtual void initialize() override;
+ virtual void initialize() override;
- WEBCORE_EXPORT virtual void setName(const String&) override;
+ virtual void setName(const String&) override;
- WEBCORE_EXPORT virtual PlatformLayerID primaryLayerID() const override;
+ virtual PlatformLayerID primaryLayerID() const override;
- WEBCORE_EXPORT virtual PlatformLayer* platformLayer() const override;
+ virtual PlatformLayer* platformLayer() const override;
PlatformCALayer* platformCALayer() const { return primaryLayer(); }
- WEBCORE_EXPORT virtual bool setChildren(const Vector<GraphicsLayer*>&) override;
- WEBCORE_EXPORT virtual void addChild(GraphicsLayer*) override;
- WEBCORE_EXPORT virtual void addChildAtIndex(GraphicsLayer*, int index) override;
- WEBCORE_EXPORT virtual void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling) override;
- WEBCORE_EXPORT virtual void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling) override;
- WEBCORE_EXPORT virtual bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild) override;
+ virtual bool setChildren(const Vector<GraphicsLayer*>&) override;
+ virtual void addChild(GraphicsLayer*) override;
+ virtual void addChildAtIndex(GraphicsLayer*, int index) override;
+ virtual void addChildAbove(GraphicsLayer*, GraphicsLayer* sibling) override;
+ virtual void addChildBelow(GraphicsLayer*, GraphicsLayer* sibling) override;
+ virtual bool replaceChild(GraphicsLayer* oldChild, GraphicsLayer* newChild) override;
- WEBCORE_EXPORT virtual void removeFromParent() override;
+ virtual void removeFromParent() override;
- WEBCORE_EXPORT virtual void setMaskLayer(GraphicsLayer*) override;
- WEBCORE_EXPORT virtual void setReplicatedLayer(GraphicsLayer*) override;
+ virtual void setMaskLayer(GraphicsLayer*) override;
+ virtual void setReplicatedLayer(GraphicsLayer*) override;
- WEBCORE_EXPORT virtual void setPosition(const FloatPoint&) override;
- WEBCORE_EXPORT virtual void setAnchorPoint(const FloatPoint3D&) override;
- WEBCORE_EXPORT virtual void setSize(const FloatSize&) override;
- WEBCORE_EXPORT virtual void setBoundsOrigin(const FloatPoint&) override;
+ virtual void setPosition(const FloatPoint&) override;
+ virtual void setAnchorPoint(const FloatPoint3D&) override;
+ virtual void setSize(const FloatSize&) override;
+ virtual void setBoundsOrigin(const FloatPoint&) override;
- WEBCORE_EXPORT virtual void setTransform(const TransformationMatrix&) override;
+ virtual void setTransform(const TransformationMatrix&) override;
- WEBCORE_EXPORT virtual void setChildrenTransform(const TransformationMatrix&) override;
+ virtual void setChildrenTransform(const TransformationMatrix&) override;
- WEBCORE_EXPORT virtual void setPreserves3D(bool) override;
- WEBCORE_EXPORT virtual void setMasksToBounds(bool) override;
- WEBCORE_EXPORT virtual void setDrawsContent(bool) override;
- WEBCORE_EXPORT virtual void setContentsVisible(bool) override;
- WEBCORE_EXPORT virtual void setAcceleratesDrawing(bool) override;
+ virtual void setPreserves3D(bool) override;
+ virtual void setMasksToBounds(bool) override;
+ virtual void setDrawsContent(bool) override;
+ virtual void setContentsVisible(bool) override;
+ virtual void setAcceleratesDrawing(bool) override;
- WEBCORE_EXPORT virtual void setBackgroundColor(const Color&) override;
+ virtual void setBackgroundColor(const Color&) override;
- WEBCORE_EXPORT virtual void setContentsOpaque(bool) override;
- WEBCORE_EXPORT virtual void setBackfaceVisibility(bool) override;
+ virtual void setContentsOpaque(bool) override;
+ virtual void setBackfaceVisibility(bool) override;
// return true if we started an animation
- WEBCORE_EXPORT virtual void setOpacity(float) override;
+ virtual void setOpacity(float) override;
#if ENABLE(CSS_FILTERS)
- WEBCORE_EXPORT virtual bool setFilters(const FilterOperations&) override;
+ virtual bool setFilters(const FilterOperations&) override;
virtual bool filtersCanBeComposited(const FilterOperations&);
#endif
#if ENABLE(CSS_COMPOSITING)
- WEBCORE_EXPORT virtual void setBlendMode(BlendMode) override;
+ virtual void setBlendMode(BlendMode) override;
#endif
- WEBCORE_EXPORT virtual void setNeedsDisplay() override;
- WEBCORE_EXPORT virtual void setNeedsDisplayInRect(const FloatRect&, ShouldClipToLayer = ClipToLayer) override;
- WEBCORE_EXPORT virtual void setContentsNeedsDisplay() override;
+ virtual void setNeedsDisplay() override;
+ virtual void setNeedsDisplayInRect(const FloatRect&, ShouldClipToLayer = ClipToLayer) override;
+ virtual void setContentsNeedsDisplay() override;
- WEBCORE_EXPORT virtual void setContentsRect(const FloatRect&) override;
- WEBCORE_EXPORT virtual void setContentsClippingRect(const FloatRect&) override;
+ virtual void setContentsRect(const FloatRect&) override;
+ virtual void setContentsClippingRect(const FloatRect&) override;
- WEBCORE_EXPORT virtual void suspendAnimations(double time) override;
- WEBCORE_EXPORT virtual void resumeAnimations() override;
+ virtual void suspendAnimations(double time) override;
+ virtual void resumeAnimations() override;
- WEBCORE_EXPORT virtual bool addAnimation(const KeyframeValueList&, const FloatSize& boxSize, const Animation*, const String& animationName, double timeOffset) override;
- WEBCORE_EXPORT virtual void pauseAnimation(const String& animationName, double timeOffset) override;
- WEBCORE_EXPORT virtual void removeAnimation(const String& animationName) override;
+ virtual bool addAnimation(const KeyframeValueList&, const FloatSize& boxSize, const Animation*, const String& animationName, double timeOffset) override;
+ virtual void pauseAnimation(const String& animationName, double timeOffset) override;
+ virtual void removeAnimation(const String& animationName) override;
- WEBCORE_EXPORT virtual void setContentsToImage(Image*) override;
- WEBCORE_EXPORT virtual void setContentsToMedia(PlatformLayer*) override;
+ virtual void setContentsToImage(Image*) override;
+ virtual void setContentsToMedia(PlatformLayer*) override;
#if PLATFORM(IOS)
- WEBCORE_EXPORT virtual PlatformLayer* contentsLayerForMedia() const override;
+ virtual PlatformLayer* contentsLayerForMedia() const override;
#endif
- WEBCORE_EXPORT virtual void setContentsToCanvas(PlatformLayer*) override;
- WEBCORE_EXPORT virtual void setContentsToSolidColor(const Color&) override;
+ virtual void setContentsToCanvas(PlatformLayer*) override;
+ virtual void setContentsToSolidColor(const Color&) override;
virtual bool usesContentsLayer() const override { return m_contentsLayerPurpose != NoContentsLayer; }
- WEBCORE_EXPORT virtual void setShowDebugBorder(bool) override;
- WEBCORE_EXPORT virtual void setShowRepaintCounter(bool) override;
+ virtual void setShowDebugBorder(bool) override;
+ virtual void setShowRepaintCounter(bool) override;
- WEBCORE_EXPORT virtual void setDebugBackgroundColor(const Color&) override;
- WEBCORE_EXPORT virtual void setDebugBorder(const Color&, float borderWidth) override;
+ virtual void setDebugBackgroundColor(const Color&) override;
+ virtual void setDebugBorder(const Color&, float borderWidth) override;
- WEBCORE_EXPORT virtual void setCustomAppearance(CustomAppearance) override;
- WEBCORE_EXPORT virtual void setCustomBehavior(CustomBehavior) override;
+ virtual void setCustomAppearance(CustomAppearance) override;
+ virtual void setCustomBehavior(CustomBehavior) override;
- WEBCORE_EXPORT virtual void deviceOrPageScaleFactorChanged() override;
+ virtual void deviceOrPageScaleFactorChanged() override;
virtual FloatSize pixelAlignmentOffset() const override { return m_pixelAlignmentOffset; }
};
void recursiveCommitChanges(const CommitState&, const TransformState&, float pageScaleFactor = 1, const FloatPoint& positionRelativeToBase = FloatPoint(), bool affectedByPageScale = false);
- WEBCORE_EXPORT virtual void flushCompositingState(const FloatRect&) override;
- WEBCORE_EXPORT virtual void flushCompositingStateForThisLayerOnly() override;
+ virtual void flushCompositingState(const FloatRect&) override;
+ virtual void flushCompositingStateForThisLayerOnly() override;
- WEBCORE_EXPORT virtual bool visibleRectChangeRequiresFlush(const FloatRect& visibleRect) const override;
+ virtual bool visibleRectChangeRequiresFlush(const FloatRect& visibleRect) const override;
- WEBCORE_EXPORT virtual TiledBacking* tiledBacking() const override;
+ virtual TiledBacking* tiledBacking() const override;
protected:
- WEBCORE_EXPORT virtual void setOpacityInternal(float) override;
+ virtual void setOpacityInternal(float) override;
- WEBCORE_EXPORT bool animationCanBeAccelerated(const KeyframeValueList&, const Animation*) const;
+ bool animationCanBeAccelerated(const KeyframeValueList&, const Animation*) const;
private:
virtual bool isGraphicsLayerCA() const override { return true; }
- WEBCORE_EXPORT virtual void willBeDestroyed() override;
+ virtual void willBeDestroyed() override;
// PlatformCALayerClient overrides
virtual void platformCALayerLayoutSublayersOfLayer(PlatformCALayer*) override { }
virtual bool platformCALayerRespondsToLayoutChanges() const override { return false; }
- WEBCORE_EXPORT void platformCALayerAnimationStarted(const String& animationKey, CFTimeInterval beginTime) override;
- WEBCORE_EXPORT void platformCALayerAnimationEnded(const String& animationKey) override;
+ virtual void platformCALayerAnimationStarted(const String& animationKey, CFTimeInterval beginTime) override;
+ virtual void platformCALayerAnimationEnded(const String& animationKey) override;
virtual CompositingCoordinatesOrientation platformCALayerContentsOrientation() const override { return contentsOrientation(); }
- WEBCORE_EXPORT virtual void platformCALayerPaintContents(PlatformCALayer*, GraphicsContext&, const FloatRect& clip) override;
+ virtual void platformCALayerPaintContents(PlatformCALayer*, GraphicsContext&, const FloatRect& clip) override;
virtual bool platformCALayerShowDebugBorders() const override { return isShowingDebugBorder(); }
- WEBCORE_EXPORT virtual bool platformCALayerShowRepaintCounter(PlatformCALayer*) const override;
+ virtual bool platformCALayerShowRepaintCounter(PlatformCALayer*) const override;
virtual int platformCALayerIncrementRepaintCount(PlatformCALayer*) override { return incrementRepaintCount(); }
virtual bool platformCALayerContentsOpaque() const override { return contentsOpaque(); }
virtual bool platformCALayerDrawsContent() const override { return drawsContent(); }
virtual void platformCALayerLayerDidDisplay(PlatformCALayer* layer) override { return layerDidDisplay(layer); }
- WEBCORE_EXPORT virtual void platformCALayerSetNeedsToRevalidateTiles() override;
- WEBCORE_EXPORT virtual float platformCALayerDeviceScaleFactor() const override;
- WEBCORE_EXPORT virtual float platformCALayerContentsScaleMultiplierForNewTiles(PlatformCALayer*) const override;
- WEBCORE_EXPORT virtual bool platformCALayerShouldAggressivelyRetainTiles(PlatformCALayer*) const override;
- WEBCORE_EXPORT virtual bool platformCALayerShouldTemporarilyRetainTileCohorts(PlatformCALayer*) const override;
+ virtual void platformCALayerSetNeedsToRevalidateTiles() override;
+ virtual float platformCALayerDeviceScaleFactor() const override;
+ virtual float platformCALayerContentsScaleMultiplierForNewTiles(PlatformCALayer*) const override;
+ virtual bool platformCALayerShouldAggressivelyRetainTiles(PlatformCALayer*) const override;
+ virtual bool platformCALayerShouldTemporarilyRetainTileCohorts(PlatformCALayer*) const override;
virtual bool isCommittingChanges() const override { return m_isCommittingChanges; }
- WEBCORE_EXPORT virtual double backingStoreMemoryEstimate() const override;
+ virtual double backingStoreMemoryEstimate() const override;
- WEBCORE_EXPORT virtual bool shouldRepaintOnSizeChange() const override;
+ virtual bool shouldRepaintOnSizeChange() const override;
- WEBCORE_EXPORT void layerDidDisplay(PlatformCALayer*);
+ void layerDidDisplay(PlatformCALayer*);
void updateOpacityOnLayer();
#if ENABLE(CSS_FILTERS)
void setupContentsLayer(PlatformCALayer*);
PlatformCALayer* contentsLayer() const { return m_contentsLayer.get(); }
- WEBCORE_EXPORT virtual void setReplicatedByLayer(GraphicsLayer*) override;
+ virtual void setReplicatedByLayer(GraphicsLayer*) override;
- WEBCORE_EXPORT virtual void getDebugBorderInfo(Color&, float& width) const override;
- WEBCORE_EXPORT virtual void dumpAdditionalProperties(TextStream&, int indent, LayerTreeAsTextBehavior) const override;
+ virtual void getDebugBorderInfo(Color&, float& width) const override;
+ virtual void dumpAdditionalProperties(TextStream&, int indent, LayerTreeAsTextBehavior) const override;
void computePixelAlignment(float contentsScale, const FloatPoint& positionRelativeToBase,
FloatPoint& position, FloatPoint3D& anchorPoint, FloatSize& alignmentOffset) const;
bool recursiveVisibleRectChangeRequiresFlush(const TransformState&) const;
- WEBCORE_EXPORT virtual bool canThrottleLayerFlush() const override;
+ virtual bool canThrottleLayerFlush() const override;
// Used to track the path down the tree for replica layers.
struct ReplicaState {
class LayerFlushScheduler {
WTF_MAKE_NONCOPYABLE(LayerFlushScheduler);
public:
- WEBCORE_EXPORT LayerFlushScheduler(LayerFlushSchedulerClient*);
- WEBCORE_EXPORT virtual ~LayerFlushScheduler();
+ LayerFlushScheduler(LayerFlushSchedulerClient*);
+ virtual ~LayerFlushScheduler();
- WEBCORE_EXPORT void schedule();
- WEBCORE_EXPORT void invalidate();
+ void schedule();
+ void invalidate();
- WEBCORE_EXPORT void suspend();
- WEBCORE_EXPORT void resume();
+ void suspend();
+ void resume();
bool isSuspended() const { return m_isSuspended; }
#if PLATFORM(COCOA)
- WEBCORE_EXPORT virtual void layerFlushCallback();
+ virtual void layerFlushCallback();
#endif
private:
class LayerPool {
WTF_MAKE_NONCOPYABLE(LayerPool);
public:
- WEBCORE_EXPORT LayerPool();
- WEBCORE_EXPORT ~LayerPool();
+ LayerPool();
+ ~LayerPool();
static HashSet<LayerPool*>& allLayerPools();
class PlatformCAFilters {
public:
- WEBCORE_EXPORT static void setFiltersOnLayer(PlatformLayer*, const FilterOperations&);
- WEBCORE_EXPORT static void setBlendingFiltersOnLayer(PlatformLayer*, const BlendMode);
+ static void setFiltersOnLayer(PlatformLayer*, const FilterOperations&);
+ static void setBlendingFiltersOnLayer(PlatformLayer*, const BlendMode);
static int numAnimatedFilterProperties(FilterOperation::OperationType);
static const char* animatedFilterPropertyName(FilterOperation::OperationType, int internalFilterPropertyIndex);
#if PLATFORM(COCOA)
- WEBCORE_EXPORT static RetainPtr<NSValue> filterValueForOperation(const FilterOperation*, int internalFilterPropertyIndex);
+ static RetainPtr<NSValue> filterValueForOperation(const FilterOperation*, int internalFilterPropertyIndex);
#endif
#ifdef USE_CA_FILTERS
virtual PassRefPtr<PlatformCALayer> clone(PlatformCALayerClient*) const = 0;
- WEBCORE_EXPORT virtual ~PlatformCALayer();
+ virtual ~PlatformCALayer();
GraphicsLayer::PlatformLayerID layerID() const { return m_layerID; }
// This function passes the layer as a void* rather than a PlatformLayer because PlatformLayer
// is defined differently for Obj C and C++. This allows callers from both languages.
- WEBCORE_EXPORT static PlatformCALayer* platformCALayer(void* platformLayer);
+ static PlatformCALayer* platformCALayer(void* platformLayer);
virtual PlatformLayer* platformLayer() const { return m_layer.get(); }
// Functions allows us to share implementation across WebTiledLayer and WebLayer
static RepaintRectList collectRectsToPaint(CGContextRef, PlatformCALayer*);
- WEBCORE_EXPORT static void drawLayerContents(CGContextRef, PlatformCALayer*, RepaintRectList& dirtyRects);
+ static void drawLayerContents(CGContextRef, PlatformCALayer*, RepaintRectList& dirtyRects);
static void drawRepaintIndicator(CGContextRef, PlatformCALayer*, int repaintCount, CGColorRef customBackgroundColor);
static CGRect frameForLayer(const PlatformLayer*);
void moveToLayerPool();
protected:
- WEBCORE_EXPORT PlatformCALayer(LayerType, PlatformCALayerClient* owner);
+ PlatformCALayer(LayerType, PlatformCALayerClient* owner);
virtual LayerPool& layerPool();
class PlatformCAAnimationMac final : public PlatformCAAnimation {
public:
static PassRefPtr<PlatformCAAnimation> create(AnimationType, const String& keyPath);
- WEBCORE_EXPORT static PassRefPtr<PlatformCAAnimation> create(PlatformAnimationRef);
+ static PassRefPtr<PlatformCAAnimation> create(PlatformAnimationRef);
virtual ~PlatformCAAnimationMac();
// is defined differently for Obj C and C++. This allows callers from both languages.
static PassRefPtr<PlatformCALayer> create(void* platformLayer, PlatformCALayerClient*);
- WEBCORE_EXPORT static LayerType layerTypeForPlatformLayer(PlatformLayer*);
+ static LayerType layerTypeForPlatformLayer(PlatformLayer*);
~PlatformCALayerMac();
virtual void setHidden(bool) override;
- WEBCORE_EXPORT virtual void setGeometryFlipped(bool) override;
+ virtual void setGeometryFlipped(bool) override;
virtual bool isDoubleSided() const override;
virtual void setDoubleSided(bool) override;
#if ENABLE(CSS_FILTERS)
virtual void setFilters(const FilterOperations&) override;
- WEBCORE_EXPORT static bool filtersCanBeComposited(const FilterOperations&);
+ static bool filtersCanBeComposited(const FilterOperations&);
virtual void copyFiltersFrom(const PlatformCALayer*) override;
#endif
friend class NeverDestroyed<IOSurfacePool>;
public:
- WEBCORE_EXPORT static IOSurfacePool& sharedPool();
+ static IOSurfacePool& sharedPool();
PassRefPtr<IOSurface> takeSurface(IntSize size, ColorSpace colorSpace);
- WEBCORE_EXPORT void addSurface(IOSurface*);
+ void addSurface(IOSurface*);
void discardAllSurfaces();
- WEBCORE_EXPORT void setPoolSize(size_t);
+ void setPoolSize(size_t);
void showPoolStatistics();
class IOSurface final : public RefCounted<IOSurface> {
public:
- WEBCORE_EXPORT static PassRefPtr<IOSurface> create(IntSize, ColorSpace);
- WEBCORE_EXPORT static PassRefPtr<IOSurface> createFromMachPort(mach_port_t, ColorSpace);
+ static PassRefPtr<IOSurface> create(IntSize, ColorSpace);
+ static PassRefPtr<IOSurface> createFromMachPort(mach_port_t, ColorSpace);
static PassRefPtr<IOSurface> createFromSurface(IOSurfaceRef, ColorSpace);
- WEBCORE_EXPORT static PassRefPtr<IOSurface> createFromImage(CGImageRef);
+ static PassRefPtr<IOSurface> createFromImage(CGImageRef);
static IntSize maximumSize();
- WEBCORE_EXPORT mach_port_t createMachPort() const;
+ mach_port_t createMachPort() const;
// Any images created from a surface need to be released before releasing
// the surface, or an expensive GPU readback can result.
- WEBCORE_EXPORT RetainPtr<CGImageRef> createImage();
+ RetainPtr<CGImageRef> createImage();
IOSurfaceRef surface() const { return m_surface.get(); }
- WEBCORE_EXPORT GraphicsContext& ensureGraphicsContext();
- WEBCORE_EXPORT CGContextRef ensurePlatformContext();
+ GraphicsContext& ensureGraphicsContext();
+ CGContextRef ensurePlatformContext();
enum class SurfaceState {
Valid,
bool isVolatile() const;
// setIsVolatile only has an effect on iOS and OS 10.9 and above.
- WEBCORE_EXPORT SurfaceState setIsVolatile(bool);
+ SurfaceState setIsVolatile(bool);
IntSize size() const { return m_size; }
size_t totalBytes() const { return m_totalBytes; }
ColorSpace colorSpace() const { return m_colorSpace; }
- WEBCORE_EXPORT bool isInUse() const;
+ bool isInUse() const;
// The graphics context cached on the surface counts as a "user", so to get
// an accurate result from isInUse(), it needs to be released.
- WEBCORE_EXPORT void releaseGraphicsContext();
+ void releaseGraphicsContext();
private:
IOSurface(IntSize, ColorSpace);
class FilterOperations {
WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT FilterOperations();
+ FilterOperations();
FilterOperations(const FilterOperations& other) { *this = other; }
- WEBCORE_EXPORT FilterOperations& operator=(const FilterOperations&);
+ FilterOperations& operator=(const FilterOperations&);
bool operator==(const FilterOperations&) const;
bool operator!=(const FilterOperations& o) const
class MediaPlayerPrivateQTKit : public MediaPlayerPrivateInterface {
public:
~MediaPlayerPrivateQTKit();
- WEBCORE_EXPORT static void registerMediaEngine(MediaEngineRegistrar);
+ static void registerMediaEngine(MediaEngineRegistrar);
void repaint();
void loadStateChanged();
void hostLayerSizeChanged();
- WEBCORE_EXPORT static void setLayerPoolCapacity(unsigned);
- WEBCORE_EXPORT static void drainLayerPool();
+ static void setLayerPoolCapacity(unsigned);
+ static void drainLayerPool();
// Logging
void dumpTiles();
class PlatformEventFactory {
public:
- WEBCORE_EXPORT static PlatformMouseEvent createPlatformMouseEvent(WebEvent *);
- WEBCORE_EXPORT static PlatformWheelEvent createPlatformWheelEvent(WebEvent *);
- WEBCORE_EXPORT static PlatformKeyboardEvent createPlatformKeyboardEvent(WebEvent *);
+ static PlatformMouseEvent createPlatformMouseEvent(WebEvent *);
+ static PlatformWheelEvent createPlatformWheelEvent(WebEvent *);
+ static PlatformKeyboardEvent createPlatformKeyboardEvent(WebEvent *);
#if ENABLE(TOUCH_EVENTS)
static PlatformTouchEvent createPlatformTouchEvent(WebEvent *);
#endif
public:
FloatingPointEnvironment();
- WEBCORE_EXPORT void enableDenormalSupport();
- WEBCORE_EXPORT void saveMainThreadEnvironment();
+ void enableDenormalSupport();
+ void saveMainThreadEnvironment();
void propagateMainThreadEnvironment();
- WEBCORE_EXPORT static FloatingPointEnvironment& shared();
+ static FloatingPointEnvironment& shared();
private:
WTF_MAKE_NONCOPYABLE(HIDGamepadProvider);
friend class NeverDestroyed<HIDGamepadProvider>;
public:
- WEBCORE_EXPORT static HIDGamepadProvider& shared();
+ static HIDGamepadProvider& shared();
virtual void startMonitoringGamepads(GamepadProviderClient*);
virtual void stopMonitoringGamepads(GamepadProviderClient*);
class MockMediaStreamCenter final : public MediaStreamCenter {
public:
- WEBCORE_EXPORT static void registerMockMediaStreamCenter();
+ static void registerMockMediaStreamCenter();
virtual void validateRequestConstraints(PassRefPtr<MediaStreamCreationClient>, PassRefPtr<MediaConstraints> audioConstraints, PassRefPtr<MediaConstraints> videoConstraints);
virtual void createMediaStream(PassRefPtr<MediaStreamCreationClient>, PassRefPtr<MediaConstraints> audioConstraints, PassRefPtr<MediaConstraints> videoConstraints);
MultipartFormData // for multipart/form-data
};
- WEBCORE_EXPORT static PassRefPtr<FormData> create();
- WEBCORE_EXPORT static PassRefPtr<FormData> create(const void*, size_t);
+ static PassRefPtr<FormData> create();
+ static PassRefPtr<FormData> create(const void*, size_t);
static PassRefPtr<FormData> create(const CString&);
static PassRefPtr<FormData> create(const Vector<char>&);
static PassRefPtr<FormData> create(const FormDataList&, const TextEncoding&, EncodingType = FormURLEncoded);
static PassRefPtr<FormData> createMultiPart(const FormDataList&, const TextEncoding&, Document*);
- WEBCORE_EXPORT ~FormData();
+ ~FormData();
// FIXME: Both these functions perform a deep copy of m_elements, but differ in handling of other data members.
// How much of that is intentional? We need better names that explain the difference.
template<typename Decoder>
static PassRefPtr<FormData> decode(Decoder&);
- WEBCORE_EXPORT void appendData(const void* data, size_t);
+ void appendData(const void* data, size_t);
void appendFile(const String& filePath, bool shouldGenerateFile = false);
- WEBCORE_EXPORT void appendFileRange(const String& filename, long long start, long long length, double expectedModificationTime, bool shouldGenerateFile = false);
- WEBCORE_EXPORT void appendBlob(const URL& blobURL);
+ void appendFileRange(const String& filename, long long start, long long length, double expectedModificationTime, bool shouldGenerateFile = false);
+ void appendBlob(const URL& blobURL);
char* expandDataStore(size_t);
void flatten(Vector<char>&) const; // omits files
public:
typedef HashMapType::const_iterator const_iterator;
- WEBCORE_EXPORT HTTPHeaderMap();
- WEBCORE_EXPORT ~HTTPHeaderMap();
+ HTTPHeaderMap();
+ ~HTTPHeaderMap();
// Gets a copy of the data suitable for passing to another thread.
std::unique_ptr<CrossThreadHTTPHeaderMapData> copyData() const;
void clear() { m_headers.clear(); }
- WEBCORE_EXPORT String get(const String& name) const;
- WEBCORE_EXPORT void set(const String& name, const String& value);
+ String get(const String& name) const;
+ void set(const String& name, const String& value);
void add(const String& name, const String& value);
- WEBCORE_EXPORT String get(HTTPHeaderName) const;
+ String get(HTTPHeaderName) const;
void set(HTTPHeaderName, const String& value);
bool contains(HTTPHeaderName) const;
const_iterator find(HTTPHeaderName) const;
- WEBCORE_EXPORT bool remove(HTTPHeaderName);
+ bool remove(HTTPHeaderName);
// Instead of passing a string literal to any of these functions, just use a HTTPHeaderName instead.
template<size_t length> String get(const char (&)[length]) const = delete;
class NetworkStorageSession {
WTF_MAKE_NONCOPYABLE(NetworkStorageSession); WTF_MAKE_FAST_ALLOCATED;
public:
- WEBCORE_EXPORT static NetworkStorageSession& defaultStorageSession();
- WEBCORE_EXPORT static std::unique_ptr<NetworkStorageSession> createPrivateBrowsingSession(const String& identifierBase = String());
+ static NetworkStorageSession& defaultStorageSession();
+ static std::unique_ptr<NetworkStorageSession> createPrivateBrowsingSession(const String& identifierBase = String());
- WEBCORE_EXPORT static void switchToNewTestingSession();
+ static void switchToNewTestingSession();
#if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP)
bool isPrivateBrowsingSession() const { return m_isPrivate; }
NetworkStorageSession(RetainPtr<CFURLStorageSessionRef>);
// May be null, in which case a Foundation default should be used.
CFURLStorageSessionRef platformSession() { return m_platformSession.get(); }
- WEBCORE_EXPORT RetainPtr<CFHTTPCookieStorageRef> cookieStorage() const;
+ RetainPtr<CFHTTPCookieStorageRef> cookieStorage() const;
#elif USE(SOUP)
NetworkStorageSession(std::unique_ptr<SoupNetworkSession>);
~NetworkStorageSession();
public:
bool isHashTableDeletedValue() const { return m_isHashTableDeletedValue; }
- WEBCORE_EXPORT const String& host() const;
- WEBCORE_EXPORT int port() const;
- WEBCORE_EXPORT ProtectionSpaceServerType serverType() const;
- WEBCORE_EXPORT bool isProxy() const;
- WEBCORE_EXPORT const String& realm() const;
- WEBCORE_EXPORT ProtectionSpaceAuthenticationScheme authenticationScheme() const;
+ const String& host() const;
+ int port() const;
+ ProtectionSpaceServerType serverType() const;
+ bool isProxy() const;
+ const String& realm() const;
+ ProtectionSpaceAuthenticationScheme authenticationScheme() const;
bool receivesCredentialSecurely() const;
static bool compare(const ProtectionSpace& a, const ProtectionSpace& b);
protected:
- WEBCORE_EXPORT ProtectionSpaceBase();
- WEBCORE_EXPORT ProtectionSpaceBase(const String& host, int port, ProtectionSpaceServerType, const String& realm, ProtectionSpaceAuthenticationScheme);
+ ProtectionSpaceBase();
+ ProtectionSpaceBase(const String& host, int port, ProtectionSpaceServerType, const String& realm, ProtectionSpaceAuthenticationScheme);
// Hash table deleted values, which are only constructed and never copied or destroyed.
ProtectionSpaceBase(WTF::HashTableDeletedValueType) : m_isHashTableDeletedValue(true) { }
#if USE(CFNETWORK)
explicit ProtectionSpace(CFURLProtectionSpaceRef);
#endif
- WEBCORE_EXPORT explicit ProtectionSpace(NSURLProtectionSpace *);
+ explicit ProtectionSpace(NSURLProtectionSpace *);
static bool platformCompare(const ProtectionSpace& a, const ProtectionSpace& b);
#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
- WEBCORE_EXPORT bool encodingRequiresPlatformData() const { return m_nsSpace && encodingRequiresPlatformData(m_nsSpace.get()); }
+ bool encodingRequiresPlatformData() const { return m_nsSpace && encodingRequiresPlatformData(m_nsSpace.get()); }
#endif
- WEBCORE_EXPORT bool receivesCredentialSecurely() const;
+ bool receivesCredentialSecurely() const;
#if USE(CFNETWORK)
CFURLProtectionSpaceRef cfSpace() const;
#endif
- WEBCORE_EXPORT NSURLProtectionSpace *nsSpace() const;
+ NSURLProtectionSpace *nsSpace() const;
private:
#if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
- WEBCORE_EXPORT static bool encodingRequiresPlatformData(NSURLProtectionSpace *);
+ static bool encodingRequiresPlatformData(NSURLProtectionSpace *);
#endif
mutable RetainPtr<NSURLProtectionSpace> m_nsSpace;
#if USE(CFNETWORK)
static std::unique_ptr<QuickLookHandle> create(ResourceHandle*, SynchronousResourceHandleCFURLConnectionDelegate*, CFURLResponseRef);
#endif
- WEBCORE_EXPORT static std::unique_ptr<QuickLookHandle> create(ResourceLoader*, NSURLResponse *);
- WEBCORE_EXPORT ~QuickLookHandle();
+ static std::unique_ptr<QuickLookHandle> create(ResourceLoader*, NSURLResponse *);
+ ~QuickLookHandle();
- WEBCORE_EXPORT bool didReceiveDataArray(CFArrayRef);
+ bool didReceiveDataArray(CFArrayRef);
bool didReceiveData(CFDataRef);
- WEBCORE_EXPORT bool didFinishLoading();
- WEBCORE_EXPORT void didFail();
+ bool didFinishLoading();
+ void didFail();
- WEBCORE_EXPORT NSURLResponse *nsResponse();
+ NSURLResponse *nsResponse();
#if USE(CFNETWORK)
CFURLResponseRef cfResponse();
#endif
void setClient(PassRefPtr<QuickLookHandleClient> client) { m_client = client; }
- WEBCORE_EXPORT String previewFileName() const;
- WEBCORE_EXPORT String previewUTI() const;
+ String previewFileName() const;
+ String previewUTI() const;
NSURL *firstRequestURL() const { return m_firstRequestURL.get(); }
- WEBCORE_EXPORT NSURL *previewRequestURL() const;
+ NSURL *previewRequestURL() const;
QLPreviewConverter *converter() const { return m_converter.get(); }
private:
class NonSharedCharacterBreakIterator {
WTF_MAKE_NONCOPYABLE(NonSharedCharacterBreakIterator);
public:
- WEBCORE_EXPORT NonSharedCharacterBreakIterator(StringView);
- WEBCORE_EXPORT ~NonSharedCharacterBreakIterator();
+ NonSharedCharacterBreakIterator(StringView);
+ ~NonSharedCharacterBreakIterator();
operator TextBreakIterator*() const { return m_iterator; }
OnlyApplicationPlugins
};
- WEBCORE_EXPORT bool supportsMimeType(const String& mimeType, const AllowedPluginTypes) const;
+ bool supportsMimeType(const String& mimeType, const AllowedPluginTypes) const;
String pluginNameForMimeType(const String& mimeType) const;
String pluginFileForMimeType(const String& mimeType) const;
public:
typedef void MainThreadFunction(void*);
- WEBCORE_EXPORT static PluginMainThreadScheduler& scheduler();
+ static PluginMainThreadScheduler& scheduler();
- WEBCORE_EXPORT void scheduleCall(NPP, MainThreadFunction*, void* userData);
+ void scheduleCall(NPP, MainThreadFunction*, void* userData);
- WEBCORE_EXPORT void registerPlugin(NPP);
- WEBCORE_EXPORT void unregisterPlugin(NPP);
+ void registerPlugin(NPP);
+ void unregisterPlugin(NPP);
private:
PluginMainThreadScheduler();
class HitTestLocation {
public:
- WEBCORE_EXPORT HitTestLocation();
+ HitTestLocation();
HitTestLocation(const LayoutPoint&);
HitTestLocation(const FloatPoint&);
HitTestLocation(const FloatPoint&, const FloatQuad&);
// Make a copy the HitTestLocation in a new region by applying given offset to internal point and area.
HitTestLocation(const HitTestLocation&, const LayoutSize& offset);
HitTestLocation(const HitTestLocation&);
- WEBCORE_EXPORT ~HitTestLocation();
+ ~HitTestLocation();
HitTestLocation& operator=(const HitTestLocation&);
const LayoutPoint& point() const { return m_point; }
bool isRectBasedTest() const { return m_isRectBased; }
bool isRectilinear() const { return m_isRectilinear; }
IntRect boundingBox() const { return m_boundingBox; }
-
- WEBCORE_EXPORT static IntRect rectForPoint(const LayoutPoint&, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding);
+
+ static IntRect rectForPoint(const LayoutPoint&, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding);
int topPadding() const { return roundedPoint().y() - m_boundingBox.y(); }
int rightPadding() const { return m_boundingBox.maxX() - roundedPoint().x() - 1; }
int bottomPadding() const { return m_boundingBox.maxY() - roundedPoint().y() - 1; }
HitTestResult(const LayoutPoint& centerPoint, unsigned topPadding, unsigned rightPadding, unsigned bottomPadding, unsigned leftPadding);
explicit HitTestResult(const HitTestLocation&);
HitTestResult(const HitTestResult&);
- WEBCORE_EXPORT ~HitTestResult();
+ ~HitTestResult();
HitTestResult& operator=(const HitTestResult&);
Node* innerNode() const { return m_innerNode.get(); }
- WEBCORE_EXPORT Element* innerElement() const;
+ Element* innerElement() const;
Node* innerNonSharedNode() const { return m_innerNonSharedNode.get(); }
- WEBCORE_EXPORT Element* innerNonSharedElement() const;
+ Element* innerNonSharedElement() const;
Element* URLElement() const { return m_innerURLElement.get(); }
Scrollbar* scrollbar() const { return m_scrollbar.get(); }
bool isOverWidget() const { return m_isOverWidget; }
// The hit-tested point in the coordinates of the innerNode frame, the frame containing innerNode.
const LayoutPoint& pointInInnerNodeFrame() const { return m_pointInInnerNodeFrame; }
IntPoint roundedPointInInnerNodeFrame() const { return roundedIntPoint(pointInInnerNodeFrame()); }
- WEBCORE_EXPORT Frame* innerNodeFrame() const;
+ Frame* innerNodeFrame() const;
// The hit-tested point in the coordinates of the inner node.
const LayoutPoint& localPoint() const { return m_localPoint; }
void setScrollbar(Scrollbar*);
void setIsOverWidget(bool b) { m_isOverWidget = b; }
- WEBCORE_EXPORT Frame* targetFrame() const;
- WEBCORE_EXPORT bool isSelected() const;
- WEBCORE_EXPORT String spellingToolTip(TextDirection&) const;
+ Frame* targetFrame() const;
+ bool isSelected() const;
+ String spellingToolTip(TextDirection&) const;
String replacedString() const;
- WEBCORE_EXPORT String title(TextDirection&) const;
+ String title(TextDirection&) const;
String innerTextIfTruncated(TextDirection&) const;
- WEBCORE_EXPORT String altDisplayString() const;
- WEBCORE_EXPORT String titleDisplayString() const;
- WEBCORE_EXPORT Image* image() const;
- WEBCORE_EXPORT IntRect imageRect() const;
- WEBCORE_EXPORT URL absoluteImageURL() const;
- WEBCORE_EXPORT URL absolutePDFURL() const;
- WEBCORE_EXPORT URL absoluteMediaURL() const;
- WEBCORE_EXPORT URL absoluteLinkURL() const;
- WEBCORE_EXPORT String textContent() const;
- WEBCORE_EXPORT bool isLiveLink() const;
+ String altDisplayString() const;
+ String titleDisplayString() const;
+ Image* image() const;
+ IntRect imageRect() const;
+ URL absoluteImageURL() const;
+ URL absolutePDFURL() const;
+ URL absoluteMediaURL() const;
+ URL absoluteLinkURL() const;
+ String textContent() const;
+ bool isLiveLink() const;
bool isOverLink() const;
- WEBCORE_EXPORT bool isContentEditable() const;
+ bool isContentEditable() const;
void toggleMediaControlsDisplay() const;
void toggleMediaLoopPlayback() const;
- WEBCORE_EXPORT bool mediaIsInFullscreen() const;
+ bool mediaIsInFullscreen() const;
void toggleMediaFullscreenState() const;
void enterFullscreenForVideo() const;
bool mediaControlsEnabled() const;
bool mediaPlaying() const;
bool mediaSupportsFullscreen() const;
void toggleMediaPlayState() const;
- WEBCORE_EXPORT bool mediaHasAudio() const;
- WEBCORE_EXPORT bool mediaIsVideo() const;
+ bool mediaHasAudio() const;
+ bool mediaIsVideo() const;
bool mediaMuted() const;
void toggleMediaMuteState() const;
// If m_rectBasedTestResult is 0 then set it to a new NodeSet. Return *m_rectBasedTestResult. Lazy allocation makes
// sense because the NodeSet is seldom necessary, and it's somewhat expensive to allocate and initialize. This method does
// the same thing as mutableRectBasedTestResult(), but here the return value is const.
- WEBCORE_EXPORT const NodeSet& rectBasedTestResult() const;
+ const NodeSet& rectBasedTestResult() const;
Vector<String> dictationAlternatives() const;