mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb/DOM: Move "text node directionality" algorithm into DOM::Text
This commit is contained in:
parent
eaea80007c
commit
2a5390ef4f
Notes:
github-actions[bot]
2024-09-18 13:19:11 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2a5390ef4f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1426
3 changed files with 32 additions and 27 deletions
|
@ -8,6 +8,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/CharacterData.h>
|
||||
#include <LibWeb/DOM/Element.h>
|
||||
#include <LibWeb/DOM/Slottable.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
@ -48,6 +49,8 @@ public:
|
|||
bool is_password_input() const { return m_is_password_input; }
|
||||
void set_is_password_input(Badge<HTML::HTMLInputElement>, bool b) { m_is_password_input = b; }
|
||||
|
||||
Optional<Element::Directionality> directionality() const;
|
||||
|
||||
protected:
|
||||
Text(Document&, String const&);
|
||||
Text(Document&, NodeType, String const&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue