Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix warnings: Use Vec.extend_from_slice instead of Vec.push_all | Tetsuharu OHZEKI | 2015-12-10 | 1 | -3/+3 |
| | |||||
* | Adds support for input element's maxlength attr | Sam Gibson | 2015-12-03 | 1 | -5/+47 |
| | | | | | servo/servo#7320 servo/servo#7004 | ||||
* | Added in-place mutation to DOMString. | Alan Jeffrey | 2015-11-12 | 1 | -1/+3 |
| | | | | | The methods which are currently implemented are the ones on String that are currently being used: string.push_str(...), string.clear() and string.extend(...). We may want to revisit this API. | ||||
* | Replaced DOMString constructor by conversion functions. | Alan Jeffrey | 2015-11-12 | 1 | -5/+5 |
| | | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("..."). | ||||
* | Make DOMString a newtype around String, rather than a typedef. | Ms2ger | 2015-11-04 | 1 | -7/+7 |
| | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type. | ||||
* | Use DOMString::new() somewhat consistently. | Ms2ger | 2015-11-04 | 1 | -1/+1 |
| | |||||
* | display input caret for textarea. fixes #7758 | Florian Merz | 2015-10-21 | 1 | -0/+10 |
| | |||||
* | sorted the extern crate, mod & use declarations | Ravi Shankar | 2015-09-24 | 1 | -3/+2 |
| | |||||
* | Fix reported test-tidy errors for unmerged import blocks | Brandon Fairchild | 2015-09-19 | 1 | -3/+2 |
| | | | | This merges import blocks that were reported by tidy as unmerged. | ||||
* | script: Ask layout to redraw the selection whenever the user moves the | Patrick Walton | 2015-09-17 | 1 | -9/+10 |
| | | | | caret in an input element. | ||||
* | Fix reported test-tidy errors | Brandon Fairchild | 2015-09-01 | 1 | -1/+1 |
| | | | | | This fixes lines that were reported to have missing space after a comma. | ||||
* | make test-tidy check that = have space after them | erneyja | 2015-09-01 | 1 | -2/+2 |
| | |||||
* | Refactor script::textinput to count UTF-8 bytes rather than code points. | Simon Sapin | 2015-08-28 | 1 | -26/+64 |
| | |||||
* | Remove helper traits | Anthony Ramine | 2015-08-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand. | ||||
* | sort all uses | Johann Tuffe | 2015-08-20 | 1 | -1/+1 |
| | |||||
* | Cleanup textinput, timers | Manish Goregaokar | 2015-08-18 | 1 | -3/+4 |
| | |||||
* | Measure heap memory usage for more types. Fixes #6951 | Bogdan Cuza | 2015-08-13 | 1 | -2/+4 |
| | |||||
* | Use local slice_chars | Jack Moffitt | 2015-07-31 | 1 | -6/+6 |
| | | | | | | | StrExt::slice_chars is deprecated and will be removed in Rust. This lifts the implementation from Rust libstd and puts it in util::str. This fixes a bunch of deprecation warnings in Servo. | ||||
* | Update rust-clipboard to the version with working set_contents. | Avi Weinstock | 2015-07-29 | 1 | -1/+0 |
| | |||||
* | Add set_clipboard_context function and relevant plumbing. Use Option more ↵ | Avi Weinstock | 2015-07-29 | 1 | -42/+68 |
| | | | | consistantly (less unwraps) in textinput's selection handling. | ||||
* | Refactor #[jstraceable] to #[derive(JSTraceable)] | David Winslow | 2015-07-01 | 1 | -3/+2 |
| | | | | fixes #6524 | ||||
* | Upgrade to SM 39 | Michael Wu | 2015-06-19 | 1 | -2/+1 |
| | |||||
* | Remove some unnecessary allocations in text input handling. | Avi Weinstock | 2015-06-11 | 1 | -10/+6 |
| | |||||
* | Remove `get_` prefix on getters | Corey Farwell | 2015-06-02 | 1 | -1/+1 |
| | | | | | | Part of #6224 I certainly didn't remove all of them; I avoided `unsafe` areas and also `components/script` | ||||
* | Change the dispatch in TextInput::handle_keydown_aux match on enum values ↵ | Avi Weinstock | 2015-05-06 | 1 | -19/+36 |
| | | | | instead of strings. | ||||
* | Made the clipboard-related functionality in TextInput more testable. Added ↵ | Avi Weinstock | 2015-05-06 | 1 | -38/+32 |
| | | | | test_clipboard_paste to the "test-unit" suite. | ||||
* | Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. | Simon Sapin | 2015-05-05 | 1 | -2/+1 |
| | |||||
* | Implement Clone for Copy types. | Ms2ger | 2015-04-28 | 1 | -2/+2 |
| | |||||
* | Remove as_slice() calls from script. | Ms2ger | 2015-04-26 | 1 | -2/+2 |
| | |||||
* | Make the channel argument to TextInput::new be optional, to support the ↵ | Avi Weinstock | 2015-04-21 | 1 | -5/+10 |
| | | | | signature expected by the unit tests. | ||||
* | Moved clipboard integration from textinput to constellation, to facilitate ↵ | Avi Weinstock | 2015-04-21 | 1 | -9/+9 |
| | | | | sandboxing. | ||||
* | Implement X11 clipboard integration (Issue #5376). | Avi Weinstock | 2015-04-21 | 1 | -1/+22 |
| | |||||
* | Move script crate unit tests into the unit_tests crate. | Simon Sapin | 2015-04-08 | 1 | -172/+16 |
| | |||||
* | Stop using int/uint in script. | Ms2ger | 2015-04-03 | 1 | -3/+3 |
| | |||||
* | Remove some unnecessary uses of `as_slice` | Corey Farwell | 2015-03-29 | 1 | -18/+18 |
| | | | | | | | | | | | For the majority of these cases, `as_slice` can be removed due to `Deref`. In particular, `Deref` for: * `String` -> `str` * `Atom` -> `str` The latter of those two requires, a bump of the locked `string-cache` library | ||||
* | Use platform-sized integers for textinput.rs | Josh Matthews | 2015-02-20 | 1 | -12/+12 |
| | |||||
* | Fix some warnings in script. | Ms2ger | 2015-02-12 | 1 | -2/+2 |
| | |||||
* | Import the util crate as util rather than servo_util. | Ms2ger | 2015-01-29 | 1 | -1/+1 |
| | | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there. | ||||
* | Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. | Josh Matthews | 2015-01-28 | 1 | -4/+4 |
| | |||||
* | Use chars().count() rather than char_len(). | Ms2ger | 2015-01-22 | 1 | -4/+4 |
| | | | | The latter is obsolete in current Rust. | ||||
* | Move to to_owned rather than into_string. | Ms2ger | 2015-01-20 | 1 | -21/+22 |
| | | | | into_string has been removed from Rust. | ||||
* | Fix TextInput's edit point after set_content | Peter Reid | 2015-01-17 | 1 | -9/+2 |
| | | | | | | Previously, when the edit point was being clamped leftward by a shortened line, it would be placed one one character too far to the left instead of at the very end. | ||||
* | added unit tests for TextInput - fixes #4352 | donaldpipowitch | 2015-01-16 | 1 | -3/+165 |
| | |||||
* | Fixes #4573 Replaces the boolean argument of ↵ | Matt McCoy | 2015-01-08 | 1 | -11/+24 |
| | | | | TextInput::adjust[horizontal|vertical] with enum to self document the code | ||||
* | Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19. | Ms2ger | 2015-01-08 | 1 | -0/+1 |
| | |||||
* | script: to_string() -> into_string() | Manish Goregaokar | 2014-12-27 | 1 | -5/+5 |
| | |||||
* | Allow selection of all text in a text control using the ctrl-a/cmd-a shortcut. | James Moughan | 2014-12-24 | 1 | -0/+28 |
| | | | | Fixes #4411. | ||||
* | On left/right keydown place edit_point correctly when there is a selection ↵ | Emanuel Rylke | 2014-12-21 | 1 | -5/+15 |
| | | | | | | in TextInput Fixes #4447 | ||||
* | Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. | Ms2ger | 2014-12-17 | 1 | -20/+25 |
| | |||||
* | Fix crash in textinput | Matthew Rasmus | 2014-12-16 | 1 | -1/+7 |
| |