| Index: Source/core/editing/CreateLinkCommand.cpp
|
| diff --git a/Source/core/editing/CreateLinkCommand.cpp b/Source/core/editing/CreateLinkCommand.cpp
|
| index 9d3bae2cdb4859756d299e5a16bfc6e14c117f28..d21924bbc1c2c804f738092837faa0b227236a9a 100644
|
| --- a/Source/core/editing/CreateLinkCommand.cpp
|
| +++ b/Source/core/editing/CreateLinkCommand.cpp
|
| @@ -20,7 +20,7 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| #include "config.h"
|
| @@ -31,7 +31,7 @@
|
|
|
| namespace WebCore {
|
|
|
| -CreateLinkCommand::CreateLinkCommand(Document* document, const String& url)
|
| +CreateLinkCommand::CreateLinkCommand(Document* document, const String& url)
|
| : CompositeEditCommand(document)
|
| {
|
| m_url = url;
|
| @@ -41,10 +41,10 @@ void CreateLinkCommand::doApply()
|
| {
|
| if (endingSelection().isNone())
|
| return;
|
| -
|
| +
|
| RefPtr<HTMLAnchorElement> anchorElement = HTMLAnchorElement::create(document());
|
| anchorElement->setHref(m_url);
|
| -
|
| +
|
| if (endingSelection().isRange())
|
| applyStyledElement(anchorElement.get());
|
| else {
|
|
|