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

Unified Diff: Source/core/layout/svg/SVGTextQuery.h

Issue 1057853002: Hide the SVGTextQuery implementation in the .cpp file (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/layout/svg/SVGTextQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/SVGTextQuery.h
diff --git a/Source/core/layout/svg/SVGTextQuery.h b/Source/core/layout/svg/SVGTextQuery.h
index cc9bd9e29d2fd479c462e8093609b91edc0d3c31..9f63ca64c3aff7cb872c47d7ba53dfcdf9de0bda 100644
--- a/Source/core/layout/svg/SVGTextQuery.h
+++ b/Source/core/layout/svg/SVGTextQuery.h
@@ -20,20 +20,16 @@
#ifndef SVGTextQuery_h
#define SVGTextQuery_h
-#include "core/layout/svg/SVGTextFragment.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/geometry/FloatRect.h"
-#include "wtf/Vector.h"
namespace blink {
-class InlineFlowBox;
class LayoutObject;
-class SVGInlineTextBox;
class SVGTextQuery {
public:
- SVGTextQuery(LayoutObject*);
+ SVGTextQuery(LayoutObject* layoutObject) : m_queryRootLayoutObject(layoutObject) { }
unsigned numberOfCharacters() const;
float textLength() const;
@@ -44,29 +40,8 @@ public:
FloatRect extentOfCharacter(unsigned position) const;
int characterNumberAtPosition(const FloatPoint&) const;
- // Public helper struct. Private classes in SVGTextQuery inherit from it.
- struct Data;
-
-private:
- typedef bool (SVGTextQuery::*ProcessTextFragmentCallback)(Data*, const SVGTextFragment&) const;
- bool executeQuery(Data*, ProcessTextFragmentCallback) const;
-
- void collectTextBoxesInFlowBox(InlineFlowBox*);
- bool mapStartEndPositionsIntoFragmentCoordinates(Data*, const SVGTextFragment&, int& startPosition, int& endPosition) const;
- void modifyStartEndPositionsRespectingLigatures(Data*, const SVGTextFragment&, int& startPosition, int& endPosition) const;
-
-private:
- bool numberOfCharactersCallback(Data*, const SVGTextFragment&) const;
- bool textLengthCallback(Data*, const SVGTextFragment&) const;
- bool subStringLengthCallback(Data*, const SVGTextFragment&) const;
- bool startPositionOfCharacterCallback(Data*, const SVGTextFragment&) const;
- bool endPositionOfCharacterCallback(Data*, const SVGTextFragment&) const;
- bool rotationOfCharacterCallback(Data*, const SVGTextFragment&) const;
- bool extentOfCharacterCallback(Data*, const SVGTextFragment&) const;
- bool characterNumberAtPositionCallback(Data*, const SVGTextFragment&) const;
-
private:
- Vector<SVGInlineTextBox*> m_textBoxes;
+ LayoutObject* m_queryRootLayoutObject;
Erik Dahlström (inactive) 2015/04/02 14:15:52 Is the LayoutObject expected to stay the same and
fs 2015/04/02 14:24:50 It is, but it can be NULL, so it can't be a refere
};
}
« no previous file with comments | « no previous file | Source/core/layout/svg/SVGTextQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698