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

Unified Diff: Source/core/svg/SVGElement.h

Issue 166163005: [SVG2] Add tabindex handling in svg. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased + add test rebaseline Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGElement.h
diff --git a/Source/core/svg/SVGElement.h b/Source/core/svg/SVGElement.h
index 020e091ad38d5d9f3aa63a7fdf734124c7100526..155c1decb082e5a6e16e5136e8910357a43e7922 100644
--- a/Source/core/svg/SVGElement.h
+++ b/Source/core/svg/SVGElement.h
@@ -51,6 +51,10 @@ class SVGElement : public Element {
public:
virtual ~SVGElement();
+ virtual bool supportsFocus() const OVERRIDE;
+ virtual short tabIndex() const OVERRIDE;
+ void setTabIndex(int);
+
bool isOutermostSVGSVGElement() const;
virtual String title() const OVERRIDE;
@@ -159,6 +163,7 @@ protected:
virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
+ virtual bool rendererIsFocusable() const OVERRIDE;
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
virtual void removedFrom(ContainerNode*) OVERRIDE;
@@ -192,13 +197,14 @@ private:
RenderStyle* computedStyle(PseudoId = NOPSEUDO);
virtual RenderStyle* virtualComputedStyle(PseudoId pseudoElementSpecifier = NOPSEUDO) OVERRIDE FINAL { return computedStyle(pseudoElementSpecifier); }
virtual void willRecalcStyle(StyleRecalcChange) OVERRIDE;
- virtual bool isKeyboardFocusable() const OVERRIDE;
void buildPendingResourcesIfNeeded();
void mapInstanceToElement(SVGElementInstance*);
void removeInstanceMapping(SVGElementInstance*);
+ bool supportsSpatialNavigationFocus() const;
+
void cleanupAnimatedProperties();
friend class CleanUpAnimatedPropertiesCaller;

Powered by Google App Engine
This is Rietveld 408576698