Commit 9c60888c authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Remove unnecessary usages of DEFINE_TYPE_CASTS()

- Remove DEFINE_DOCUMENT_TYPE_CASTS() macro
  It's not used.

- Remove DEFINE_TRACK_TYPE_CASTS() macro
  It's not used.

- Remove DEFINE_TYPE_CASTS() for PresentationConnectionAvailableEvent
  The code generated by this DEFINE_TYPE_CASTS() are not used.

This CL has no behavior changes.

Bug: 891908
Change-Id: I8a60227c042f85c7d25184258e105b1ba2a9eebb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2546393
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#828826}
parent 647f331a
...@@ -2240,10 +2240,6 @@ inline void Document::ScheduleLayoutTreeUpdateIfNeeded() { ...@@ -2240,10 +2240,6 @@ inline void Document::ScheduleLayoutTreeUpdateIfNeeded() {
ScheduleLayoutTreeUpdate(); ScheduleLayoutTreeUpdate();
} }
#define DEFINE_DOCUMENT_TYPE_CASTS(thisType) \
DEFINE_TYPE_CASTS(thisType, Document, document, document->Is##thisType(), \
document.Is##thisType())
// This is needed to avoid ambiguous overloads with the Node and TreeScope // This is needed to avoid ambiguous overloads with the Node and TreeScope
// versions. // versions.
DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Document) DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Document)
......
...@@ -70,10 +70,6 @@ class CORE_EXPORT TrackBase : public Supplementable<TrackBase> { ...@@ -70,10 +70,6 @@ class CORE_EXPORT TrackBase : public Supplementable<TrackBase> {
Member<HTMLMediaElement> media_element_; Member<HTMLMediaElement> media_element_;
}; };
#define DEFINE_TRACK_TYPE_CASTS(thisType, predicate) \
DEFINE_TYPE_CASTS(thisType, TrackBase, track, track->GetType() == predicate, \
track.GetType() == predicate)
} // namespace blink } // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_HTML_TRACK_TRACK_BASE_H_ #endif // THIRD_PARTY_BLINK_RENDERER_CORE_HTML_TRACK_TRACK_BASE_H_
...@@ -50,15 +50,6 @@ class PresentationConnectionAvailableEvent final : public Event { ...@@ -50,15 +50,6 @@ class PresentationConnectionAvailableEvent final : public Event {
Member<PresentationConnection> connection_; Member<PresentationConnection> connection_;
}; };
DEFINE_TYPE_CASTS(
PresentationConnectionAvailableEvent,
Event,
event,
event->InterfaceName() ==
event_interface_names::kPresentationConnectionAvailableEvent,
event.InterfaceName() ==
event_interface_names::kPresentationConnectionAvailableEvent);
} // namespace blink } // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_PRESENTATION_CONNECTION_AVAILABLE_EVENT_H_ #endif // THIRD_PARTY_BLINK_RENDERER_MODULES_PRESENTATION_PRESENTATION_CONNECTION_AVAILABLE_EVENT_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment