mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
AK: Rename downcast<T> => verify_cast<T>
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
This commit is contained in:
parent
6215a9c2cb
commit
ee3a73ddbb
61 changed files with 262 additions and 262 deletions
|
@ -21,10 +21,10 @@ public:
|
|||
|
||||
virtual HitTestResult hit_test(const Gfx::IntPoint&, HitTestType) const override;
|
||||
|
||||
BlockBox* previous_sibling() { return downcast<BlockBox>(Node::previous_sibling()); }
|
||||
const BlockBox* previous_sibling() const { return downcast<BlockBox>(Node::previous_sibling()); }
|
||||
BlockBox* next_sibling() { return downcast<BlockBox>(Node::next_sibling()); }
|
||||
const BlockBox* next_sibling() const { return downcast<BlockBox>(Node::next_sibling()); }
|
||||
BlockBox* previous_sibling() { return verify_cast<BlockBox>(Node::previous_sibling()); }
|
||||
const BlockBox* previous_sibling() const { return verify_cast<BlockBox>(Node::previous_sibling()); }
|
||||
BlockBox* next_sibling() { return verify_cast<BlockBox>(Node::next_sibling()); }
|
||||
const BlockBox* next_sibling() const { return verify_cast<BlockBox>(Node::next_sibling()); }
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_fragment(Callback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue