Title: [172621] trunk/Source/WebCore
- Revision
- 172621
- Author
- [email protected]
- Date
- 2014-08-14 21:24:33 -0700 (Thu, 14 Aug 2014)
Log Message
Remove two unused Range functions.
<https://webkit.org/b/135944>
Reviewed by Geoffrey Garen.
* dom/Range.cpp:
(WebCore::Range::maxStartOffset): Deleted.
(WebCore::Range::maxEndOffset): Deleted.
* dom/Range.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (172620 => 172621)
--- trunk/Source/WebCore/ChangeLog 2014-08-15 04:10:26 UTC (rev 172620)
+++ trunk/Source/WebCore/ChangeLog 2014-08-15 04:24:33 UTC (rev 172621)
@@ -1,3 +1,15 @@
+2014-08-14 Andreas Kling <[email protected]>
+
+ Remove two unused Range functions.
+ <https://webkit.org/b/135944>
+
+ Reviewed by Geoffrey Garen.
+
+ * dom/Range.cpp:
+ (WebCore::Range::maxStartOffset): Deleted.
+ (WebCore::Range::maxEndOffset): Deleted.
+ * dom/Range.h:
+
2014-08-14 Daniel Bates <[email protected]>
Preserve editing style for -webkit-tap-highlight-color on all ports that enable ENABLE_TOUCH_EVENTS
Modified: trunk/Source/WebCore/dom/Range.cpp (172620 => 172621)
--- trunk/Source/WebCore/dom/Range.cpp 2014-08-15 04:10:26 UTC (rev 172620)
+++ trunk/Source/WebCore/dom/Range.cpp 2014-08-15 04:24:33 UTC (rev 172621)
@@ -2026,24 +2026,6 @@
return range.release();
}
-int Range::maxStartOffset() const
-{
- if (!m_start.container())
- return 0;
- if (!m_start.container()->offsetInCharacters())
- return m_start.container()->childNodeCount();
- return m_start.container()->maxCharacterOffset();
-}
-
-int Range::maxEndOffset() const
-{
- if (!m_end.container())
- return 0;
- if (!m_end.container()->offsetInCharacters())
- return m_end.container()->childNodeCount();
- return m_end.container()->maxCharacterOffset();
-}
-
static inline void boundaryNodeChildrenChanged(RangeBoundaryPoint& boundary, ContainerNode& container)
{
if (!boundary.childBefore())
Modified: trunk/Source/WebCore/dom/Range.h (172620 => 172621)
--- trunk/Source/WebCore/dom/Range.h 2014-08-15 04:10:26 UTC (rev 172620)
+++ trunk/Source/WebCore/dom/Range.h 2014-08-15 04:24:33 UTC (rev 172621)
@@ -173,8 +173,6 @@
void checkNodeBA(Node*, ExceptionCode&) const;
void checkDeleteExtract(ExceptionCode&);
bool containedByReadOnly() const;
- int maxStartOffset() const;
- int maxEndOffset() const;
enum ActionType { Delete, Extract, Clone };
PassRefPtr<DocumentFragment> processContents(ActionType, ExceptionCode&);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes