Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: Source/WebCore/html/HTMLAnchorElement.cpp

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/html/HTMLAnchorElement.h ('k') | Source/WebCore/html/HTMLAreaElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> 4 * (C) 2000 Simon Hausmann <hausmann@kde.org>
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 bool isLinkClick(Event* event) 569 bool isLinkClick(Event* event)
570 { 570 {
571 return event->type() == eventNames().clickEvent && (!event->isMouseEvent() | | static_cast<MouseEvent*>(event)->button() != RightButton); 571 return event->type() == eventNames().clickEvent && (!event->isMouseEvent() | | static_cast<MouseEvent*>(event)->button() != RightButton);
572 } 572 }
573 573
574 bool HTMLAnchorElement::willRespondToMouseClickEvents() 574 bool HTMLAnchorElement::willRespondToMouseClickEvents()
575 { 575 {
576 return isLink() || HTMLElement::willRespondToMouseClickEvents(); 576 return isLink() || HTMLElement::willRespondToMouseClickEvents();
577 } 577 }
578 578
579 #if ENABLE(MICRODATA)
580 String HTMLAnchorElement::itemValueText() const
581 {
582 return getURLAttribute(hrefAttr);
583 }
584
585 void HTMLAnchorElement::setItemValueText(const String& value, ExceptionCode&)
586 {
587 setAttribute(hrefAttr, value);
588 }
589 #endif
590
591 typedef HashMap<const HTMLAnchorElement*, RefPtr<Element> > RootEditableElementM ap; 579 typedef HashMap<const HTMLAnchorElement*, RefPtr<Element> > RootEditableElementM ap;
592 580
593 static RootEditableElementMap& rootEditableElementMap() 581 static RootEditableElementMap& rootEditableElementMap()
594 { 582 {
595 DEFINE_STATIC_LOCAL(RootEditableElementMap, map, ()); 583 DEFINE_STATIC_LOCAL(RootEditableElementMap, map, ());
596 return map; 584 return map;
597 } 585 }
598 586
599 Element* HTMLAnchorElement::rootEditableElementForSelectionOnMouseDown() const 587 Element* HTMLAnchorElement::rootEditableElementForSelectionOnMouseDown() const
600 { 588 {
(...skipping 15 matching lines...) Expand all
616 if (!element) { 604 if (!element) {
617 clearRootEditableElementForSelectionOnMouseDown(); 605 clearRootEditableElementForSelectionOnMouseDown();
618 return; 606 return;
619 } 607 }
620 608
621 rootEditableElementMap().set(this, element); 609 rootEditableElementMap().set(this, element);
622 m_hasRootEditableElementForSelectionOnMouseDown = true; 610 m_hasRootEditableElementForSelectionOnMouseDown = true;
623 } 611 }
624 612
625 } 613 }
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLAnchorElement.h ('k') | Source/WebCore/html/HTMLAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698