mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove get_ prefix for functions in LayoutHTMLInputElementHelpers
This commit is contained in:
parent
2d503c8281
commit
c9193eaeca
3 changed files with 18 additions and 18 deletions
|
@ -1050,7 +1050,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
|||
return TextContent::Text(data);
|
||||
}
|
||||
if let Some(input) = this.downcast::<HTMLInputElement>() {
|
||||
let data = unsafe { input.get_value_for_layout() };
|
||||
let data = unsafe { input.value_for_layout() };
|
||||
return TextContent::Text(data);
|
||||
}
|
||||
if let Some(area) = this.downcast::<HTMLTextAreaElement>() {
|
||||
|
@ -1076,7 +1076,7 @@ impl<'ln> ThreadSafeLayoutNode for ServoThreadSafeLayoutNode<'ln> {
|
|||
}
|
||||
}
|
||||
if let Some(input) = this.downcast::<HTMLInputElement>() {
|
||||
if let Some(selection) = unsafe { input.get_selection_for_layout() } {
|
||||
if let Some(selection) = unsafe { input.selection_for_layout() } {
|
||||
return Some(Range::new(CharIndex(selection.begin()),
|
||||
CharIndex(selection.length())));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue